From 77f54cb29bc0a5425f7f439e57e90c3995e576b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=B0=E9=98=85?= <43716063+Baiyuetribe@users.noreply.github.com> Date: Tue, 31 Dec 2024 14:27:57 +0800 Subject: [PATCH] add simpstl env for resize --- src/layer/topk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layer/topk.cpp b/src/layer/topk.cpp index 5d6dd01a7cd..aeb28724a80 100644 --- a/src/layer/topk.cpp +++ b/src/layer/topk.cpp @@ -46,7 +46,7 @@ int TopK::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) cons std::vector > vec; #if !NCNN_SIMPLESTL vec.reserve(size); -#else +#endif for (int i = 0; i < size; i++) { vec.push_back(std::make_pair(ptr[i], i));