We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/Users/XXX/Downloads/squeezencnn-AH/app/src/main/jni/squeezencnn_jni.cpp:149:42: error: invalid conversion from 'void*' to 'const float*' [-fpermissive] const float* prob = out.data + out.cstep * j; ^
这里的out.data是void类型 ,如果强行转换为float之后虽然可以编译成功,但是最后运行结果不对。
The text was updated successfully, but these errors were encountered:
最新的ncnn有所更改,可以参照这里的写法
ncnn/examples/squeezencnn/jni/squeezencnn_jni.cpp
Line 149 in c6abc87
ncnn::Mat out_flatterned = out.reshape(out.w * out.h * out.c); std::vector<float> scores; scores.resize(out_flatterned.w); for (int j=0; j<out_flatterned.w; j++) { scores[j] = out_flatterned[j]; }
Sorry, something went wrong.
No branches or pull requests
/Users/XXX/Downloads/squeezencnn-AH/app/src/main/jni/squeezencnn_jni.cpp:149:42: error: invalid conversion from 'void*' to 'const float*' [-fpermissive]
const float* prob = out.data + out.cstep * j;
^
这里的out.data是void类型 ,如果强行转换为float之后虽然可以编译成功,但是最后运行结果不对。
The text was updated successfully, but these errors were encountered: