From d91d7419eb28dc45e206f277394afa02bac038b3 Mon Sep 17 00:00:00 2001 From: Gemfield Date: Wed, 20 Mar 2019 22:11:15 +0800 Subject: [PATCH] Add upsample linear mode (#846) --- tools/onnx/onnx2ncnn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/onnx/onnx2ncnn.cpp b/tools/onnx/onnx2ncnn.cpp index ac941bd7c..9319363e5 100644 --- a/tools/onnx/onnx2ncnn.cpp +++ b/tools/onnx/onnx2ncnn.cpp @@ -1601,7 +1601,7 @@ int main(int argc, char** argv) { resize_type = 1; } - else if (mode == "bilinear") + else if (mode == "bilinear" || mode == "linear") { resize_type = 2; }