android-yolo icon indicating copy to clipboard operation
android-yolo copied to clipboard

Can't rebuild NDK because of errors in tensorflow_jni.cc

Open haophancs opened this issue 7 years ago • 0 comments

[armeabi-v7a] Compile++ arm : tensorflow_demo <= tensorflow_jni.cc jni/./tensorflow_jni.cc: In function 'std::string ClassifyImage(const {anonymous}::RGBA*)': jni/./tensorflow_jni.cc:319:33: error: 'output' cannot be used as a function const float value = output(i); ^ jni/./tensorflow_jni.cc:320:16: error: base operand of '->' has non-pointer type 'std::vector' top_results->push_back(value); ^ jni/./tensorflow_jni.cc:322:27: error: base operand of '->' has non-pointer type 'std::vector' std::reverse(top_results->begin(), top_results->end()); ^ jni/./tensorflow_jni.cc:322:49: error: base operand of '->' has non-pointer type 'std::vector' std::reverse(top_results->begin(), top_results->end()); ^ jni/./tensorflow_jni.cc: At global scope: jni/./tensorflow_jni.cc:172:13: warning: 'void GetTopN(const Eigen::TensorMap<Eigen::Tensor<float, 1, 1, int>, 16>&, int, float, std::vector<std::pair<float, int>

*)' defined but not used [-Wunused-function] static void GetTopN( ^ make: *** [obj/local/armeabi-v7a/objs/tensorflow_demo/./tensorflow_jni.o] Error 1

haophancs avatar Dec 19 '17 17:12 haophancs