cloudwiser / tensorflowliterpizero Goto Github PK
View Code? Open in Web Editor NEWTensorFlow Lite : native compilation on the Raspberry Pi Zero W
License: MIT License
TensorFlow Lite : native compilation on the Raspberry Pi Zero W
License: MIT License
Hello. I wasn't able to get this to work. Do you have an image of a Pi Zero I can download and use instead? Thank you!
Ps, here is my error message:
undefined reference to `__atomic_load_8'
Compile tensorflow lite without errors
undefined reference to `__atomic_load_8'
cd /home/pi/tensorflow
./tensorflow/lite/tools/make/build_rpi_armv6_lib.sh
Stuck here-Googling tells me it has to do with a cmake .txt file. I sh I uld be pasting set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -latomic") in CMakelists.txt.
/tensorflow
pi@raspberrypi:~/tensorflow $ sudo bash ./tensorflow/lite/tools/make/build_rpi_armv6_lib.sh
arm-linux-gnueabihf-g++ -O3 -DNDEBUG -fPIC --std=c++11 -march=armv6 -mfpu=vfp -funsafe-math-optimizations -ftree-vectorize -fPIC -I. -I/home/pi/tensorflow/tensorflow/lite/tools/make/../../../../../ -I/home/pi/tensorflow/tensorflow/lite/tools/make/../../../../../../ -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/ -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/absl -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/gemmlowp -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/neon_2_sse -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/farmhash/src -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/flatbuffers/include -I -I/usr/local/include
-o /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/bin/minimal /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/examples/minimal/minimal.o
/home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a -Wl,--no-export-dynamic -Wl,--exclude-libs,ALL -Wl,--gc-sections -Wl,--as-needed -lstdc++ -lpthread -lm -ldl
arm-linux-gnueabihf-g++ -O3 -DNDEBUG -fPIC --std=c++11 -march=armv6 -mfpu=vfp -funsafe-math-optimizations -ftree-vectorize -fPIC -I. -I/home/pi/tensorflow/tensorflow/lite/tools/make/../../../../../ -I/home/pi/tensorflow/tensorflow/lite/tools/make/../../../../../../ -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/ -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/absl -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/gemmlowp -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/neon_2_sse -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/farmhash/src -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/flatbuffers/include -I -I/usr/local/include
-o /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/bin/label_image /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/examples/label_image/label_image.o /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/examples/label_image/bitmap_helpers.o /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/tools/evaluation/utils.o
/home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a -Wl,--no-export-dynamic -Wl,--exclude-libs,ALL -Wl,--gc-sections -Wl,--as-needed -lstdc++ -lpthread -lm -ldl
/usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function tflite::eigen_support::(anonymous namespace)::EigenThreadPoolWrapper::~EigenThreadPoolWrapper()/usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function
tflite::eigen_support::(anonymous namespace)::EigenThreadPoolWrapper::~EigenThreadPoolWrapper()':
eigen_support.cc:(.text+0x620)'::
undefinedeigen_support.cc :reference( .totext +0x620__atomic_load_8)': /undefinedusr /referencebin /told :
__atomic_load_8eigen_support.cc':
(/.usrtext/+bin0x6d8/)ld:: undefinedeigen_support.cc :reference( .totext +0x6d8__atomic_compare_exchange_8)': /undefinedusr /bin/ldreference: toeigen_support.cc :
(__atomic_compare_exchange_8.'text
+/0x74cusr)/:bin /undefinedld :reference eigen_support.ccto: (.__atomic_load_8text'+ 0x74c/)usr:/ binundefined/ ldreference: toeigen_support.cc :
(__atomic_load_8.'text
/usr/+bin0x800/)ld:: undefinedeigen_support.cc :reference( .totext +0x800__atomic_load_8)': undefined/ usrreference/ binto/ld :
__atomic_load_8/'home
//piusr//tensorflowbin//tensorflowld/:lite //toolshome/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function tflite::eigen_support::(anonymous namespace)::EigenThreadPoolWrapper::~EigenThreadPoolWrapper()': eigen_support.cc:(.text+0xcc8): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text+0xd80): undefined reference to __atomic_compare_exchange_8' /usr/bin/ld: eigen_support.cc:(.text+0xdf4): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text+0xea0): undefined reference to __atomic_load_8' /usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function
tflite::eigen_support::GetThreadPoolDevice(TfLiteContext*)':
eigen_support.cc:(.text+0x1b70): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text+0x1c10): undefined reference to
__atomic_compare_exchange_8'
/usr/bin/ld: eigen_support.cc:(.text+0x1c7c): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text+0x1d24): undefined reference to
__atomic_load_8'
/usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function EigenForTFLite::ThreadPoolTempl<EigenForTFLite::StlThreadEnvironment>::Cancel()': eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv]+0x38): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv]+0xd8): undefined reference to __atomic_compare_exchange_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv]+0x14c): undefined reference to
__atomic_load_8'
/usr/bin/ld/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function tflite::eigen_support::(anonymous namespace)::EigenThreadPoolWrapper::~EigenThreadPoolWrapper()': eigen_support.cc:(.text+0xcc8): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text+0xd80): undefined reference to __atomic_compare_exchange_8' /usr/bin/ld: eigen_support.cc:(.text+0xdf4): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text+0xea0): undefined reference to __atomic_load_8' /usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function
tflite::eigen_support::GetThreadPoolDevice(TfLiteContext*)':
eigen_support.cc:(.text+0x1b70): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text+0x1c10): undefined reference to
__atomic_compare_exchange_8'
/usr/bin/ld: eigen_support.cc:(.text+0x1c7c): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text+0x1d24): undefined reference to
__atomic_load_8'
/usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function EigenForTFLite::ThreadPoolTempl<EigenForTFLite::StlThreadEnvironment>::Cancel()': eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv]+0x38): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv]+0xd8): undefined reference to __atomic_compare_exchange_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv]+0x14c): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv]+0x1d0): undefined reference to __atomic_load_8' /usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function
EigenForTFLite::ThreadPoolTemplEigenForTFLite::StlThreadEnvironment::~ThreadPoolTempl()':
eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED0Ev[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev]+0x394): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED0Ev[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev]+0x44c): undefined reference to
__atomic_compare_exchange_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED0Ev[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev]+0x4c0): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED0Ev[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev]+0x5d4): undefined reference to
__atomic_load_8'
/usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function EigenForTFLite::ThreadPoolTempl<EigenForTFLite::StlThreadEnvironment>::~ThreadPoolTempl()': eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev]+0x394): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev]+0x42c): undefined reference to __atomic_compare_exchange_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev]+0x498): undefined reference to
__atomic_load_8'
: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE6CancelEv]+0x1d0): undefined reference to __atomic_load_8' /usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function
EigenForTFLite::ThreadPoolTemplEigenForTFLite::StlThreadEnvironment::~ThreadPoolTempl()':
eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED0Ev[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev]+0x394): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED0Ev[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev]+0x44c): undefined reference to
__atomic_compare_exchange_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED0Ev[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev]+0x4c0): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED0Ev[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev]+0x5d4): undefined reference to
__atomic_load_8'
/usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function EigenForTFLite::ThreadPoolTempl<EigenForTFLite::StlThreadEnvironment>::~ThreadPoolTempl()': eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev]+0x394): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:/(usr./bintext._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev/ld[:_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev ]eigen_support.cc+:0x42c().:text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev undefined reference to[ _ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev__atomic_compare_exchange_8]'+ 0x538/)usr:/ binundefined/ ldreference: toeigen_support.cc :
__atomic_load_8('.
text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Ev/[usr_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev/]bin+/0x498ld):: /undefinedhome /referencepi /totensorflow /tensorflow__atomic_load_8/'lite //toolsusr//makebin//genld/:rpi_armv6 /eigen_support.cclib:/(libtensorflow.-text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED2Evlite.a([eigen_support.o_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEED5Ev)]:+ 0x538in) : undefined reference to
__atomic_load_8'
/usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function EigenForTFLite::ThreadPoolTempl<EigenForTFLite::StlThreadEnvironment>::ScheduleWithHint(std::function<void ()>, int, int)': eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii]+0x56c): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii]+0x63c): undefined reference to __atomic_compare_exchange_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii]+0x6a4): undefined reference to
__atomic_store_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii]+0x6ec): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii]+0x84c): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii]+0x8b0): undefined reference to __atomic_load_8' /usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function
EigenForTFLite::ThreadPoolTemplEigenForTFLite::StlThreadEnvironment::WaitForWork(EigenForTFLite::EventCount::Waiter*, EigenForTFLite::StlThreadEnvironment::Task*)':
eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x2c): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x64): undefined reference to
__atomic_compare_exchange_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x1b0): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x204): undefined reference to
__atomic_compare_exchange_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x2c4): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x31c): undefined reference to
__atomic_compare_exchange_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x540): undefined reference to __atomic_store_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x628): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x680): undefined reference to __atomic_compare_exchange_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x7e8): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x878): undefined reference to __atomic_compare_exchange_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x8ec): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0xa08): undefined reference to __atomic_load_8' function
EigenForTFLite::ThreadPoolTemplEigenForTFLite::StlThreadEnvironment::ScheduleWithHint(std::function<void ()>, int, int)':
eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii]+0x56c): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii]+0x63c): undefined reference to
__atomic_compare_exchange_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii]+0x6a4): undefined reference to __atomic_store_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii]+0x6ec): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii]+0x84c): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE16ScheduleWithHintESt8functionIFvvEEii]+0x8b0): undefined reference to
__atomic_load_8'
/usr/bin/ld: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/lib/libtensorflow-lite.a(eigen_support.o): in function EigenForTFLite::ThreadPoolTempl<EigenForTFLite::StlThreadEnvironment>::WaitForWork(EigenForTFLite::EventCount::Waiter*, EigenForTFLite::StlThreadEnvironment::Task*)': eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x2c): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x64): undefined reference to __atomic_compare_exchange_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x1b0): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x204): undefined reference to __atomic_compare_exchange_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x2c4): undefined reference to
__atomic_load_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x31c): undefined reference to __atomic_compare_exchange_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x540): undefined reference to
__atomic_store_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x628): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x680): undefined reference to
__atomic_compare_exchange_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x7e8): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x878): undefined reference to
__atomic_compare_exchange_8'
/usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0x8ec): undefined reference to __atomic_load_8' /usr/bin/ld: eigen_support.cc:(.text._ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE[_ZN14EigenForTFLite15ThreadPoolTemplINS_20StlThreadEnvironmentEE11WaitForWorkEPNS_10EventCount6WaiterEPNS1_4TaskE]+0xa08): undefined reference to
__atomic_load_8'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make: *** [tensorflow/lite/tools/make/Makefile:287: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/bin/minimal] Error 1
make: *** Waiting for unfinished jobs....
make: *** [tensorflow/lite/tools/make/Makefile:309: /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/bin/label_image] Error 1
<x.y.z>
Hi,
Not sure why but every single time I run the script after downloading dependencies, the script comes up with multiple errors.
I build before but I had to reflash my sd, but now I can't reproduce in time for a deadline. Please help!
The error output:
./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2500:31: error: ‘scalar_logistic_op’ is not a member of ‘Eigen::internal’ input_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2500:67: error: expected primary-expression before ‘float’ input_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2502:32: error: ‘scalar_logistic_op’ is not a member of ‘Eigen::internal’ forget_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2502:68: error: expected primary-expression before ‘float’ forget_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2505:32: error: ‘scalar_logistic_op’ is not a member of ‘Eigen::internal’ output_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2505:68: error: expected primary-expression before ‘float’ output_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ In file included from tensorflow/lite/kernels/add.cc:19:0: ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h: In function ‘void tflite::optimized_ops::LstmCell(const tflite::LstmCellParams&, const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, float*, const tflite::RuntimeShape&, float*, const tflite::RuntimeShape&, float*, const tflite::RuntimeShape&, float*, tflite::CpuBackendContext*)’: ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2500:31: error: ‘scalar_logistic_op’ is not a member of ‘Eigen::internal’ input_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2500:67: error: expected primary-expression before ‘float’ input_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2502:32: error: ‘scalar_logistic_op’ is not a member of ‘Eigen::internal’ forget_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2502:68: error: expected primary-expression before ‘float’ forget_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2505:32: error: ‘scalar_logistic_op’ is not a member of ‘Eigen::internal’ output_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2505:68: error: expected primary-expression before ‘float’ output_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h: In function ‘void tflite::optimized_ops::Logistic(const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, float*)’: ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:3760:35: error: ‘scalar_logistic_op’ is not a member of ‘Eigen::internal’ input_map.array().unaryExpr(Eigen::internal::scalar_logistic_op<float>()); ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:3760:71: error: expected primary-expression before ‘float’ input_map.array().unaryExpr(Eigen::internal::scalar_logistic_op<float>()); ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h: In function ‘void tflite::optimized_ops::Logistic(const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, float*)’: ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:3760:35: error: ‘scalar_logistic_op’ is not a member of ‘Eigen::internal’ input_map.array().unaryExpr(Eigen::internal::scalar_logistic_op<float>()); ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:3760:71: error: expected primary-expression before ‘float’ input_map.array().unaryExpr(Eigen::internal::scalar_logistic_op<float>()); ^~~~~ arm-linux-gnueabihf-g++ -O3 -DNDEBUG -fPIC --std=c++11 -march=armv6 -mfpu=vfp -funsafe-math-optimizations -ftree-vectorize -fPIC -I. -I/home/pi/tensorflow/tensorflow/lite/tools/make/../../../../../ -I/home/pi/tensorflow/tensorflow/lite/tools/make/../../../../../../ -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/ -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/absl -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/gemmlowp -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/neon_2_sse -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/farmhash/src -I/home/pi/tensorflow/tensorflow/lite/tools/make/downloads/flatbuffers/include -I -I/usr/local/include -c tensorflow/lite/kernels/arg_min_max.cc -o /home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/kernels/arg_min_max.o
In file included from /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/Core:388:0, from ./third_party/eigen3/Eigen/Core:1, from ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:36, from tensorflow/lite/kernels/activations.cc:25: /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/CoreEvaluators.h: In instantiation of ‘Eigen::internal::binary_evaluator<Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>, Eigen::internal::IndexBased, Eigen::internal::IndexBased>::CoeffReturnType Eigen::internal::binary_evaluator<Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>, Eigen::internal::IndexBased, Eigen::internal::IndexBased>::coeff(Eigen::Index, Eigen::Index) const [with BinaryOp = Eigen::internal::scalar_difference_op<float, float>; Lhs = const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >; Rhs = const Eigen::Replicate<Eigen::PartialReduxExpr<const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, Eigen::internal::member_maxCoeff<float>, 0>, -1, 1>; typename Eigen::internal::traits<typename Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>::Rhs>::Scalar = float; typename Eigen::internal::traits<typename Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>::Lhs>::Scalar = float; Eigen::internal::binary_evaluator<Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>, Eigen::internal::IndexBased, Eigen::internal::IndexBased>::CoeffReturnType = float; Eigen::Index = int]’: /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/CoreEvaluators.h:1328:36: required from ‘Eigen::internal::evaluator_wrapper_base<XprType>::CoeffReturnType Eigen::internal::evaluator_wrapper_base<XprType>::coeff(Eigen::Index, Eigen::Index) const [with XprType = Eigen::ArrayWrapper<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<float, float>, const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, const Eigen::Replicate<Eigen::PartialReduxExpr<const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, Eigen::internal::member_maxCoeff<float>, 0>, -1, 1> > >; Eigen::internal::evaluator_wrapper_base<XprType>::CoeffReturnType = float; Eigen::Index = int]’ /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/CoreEvaluators.h:713:74: required from ‘Eigen::internal::binary_evaluator<Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>, Eigen::internal::IndexBased, Eigen::internal::IndexBased>::CoeffReturnType Eigen::internal::binary_evaluator<Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>, Eigen::internal::IndexBased, Eigen::internal::IndexBased>::coeff(Eigen::Index, Eigen::Index) const [with BinaryOp = Eigen::internal::scalar_product_op<float, float>; Lhs = const Eigen::ArrayWrapper<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<float, float>, const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, const Eigen::Replicate<Eigen::PartialReduxExpr<const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, Eigen::internal::member_maxCoeff<float>, 0>, -1, 1> > >; Rhs = const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<float>, const Eigen::Array<float, -1, -1> >; typename Eigen::internal::traits<typename Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>::Rhs>::Scalar = float; typename Eigen::internal::traits<typename Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>::Lhs>::Scalar = float; Eigen::internal::binary_evaluator<Eigen::CwiseBinaryOp<BinaryOp, Lhs, Rhs>, Eigen::internal::IndexBased, Eigen::internal::IndexBased>::CoeffReturnType = float; Eigen::Index = int]’ /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/AssignEvaluator.h:631:5: required from ‘void Eigen::internal::generic_dense_assignment_kernel<DstEvaluatorTypeT, SrcEvaluatorTypeT, Functor, Version>::assignCoeff(Eigen::Index, Eigen::Index) [with DstEvaluatorTypeT = Eigen::internal::evaluator<Eigen::Map<Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> > >; SrcEvaluatorTypeT = Eigen::internal::evaluator<Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<float, float>, const Eigen::ArrayWrapper<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<float, float>, const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, const Eigen::Replicate<Eigen::PartialReduxExpr<const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, Eigen::internal::member_maxCoeff<float>, 0>, -1, 1> > >, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<float>, const Eigen::Array<float, -1, -1> > > >; Functor = Eigen::internal::assign_op<float, float>; int Version = 0; Eigen::Index = int]’ /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/AssignEvaluator.h:645:16: required from ‘void Eigen::internal::generic_dense_assignment_kernel<DstEvaluatorTypeT, SrcEvaluatorTypeT, Functor, Version>::assignCoeffByOuterInner(Eigen::Index, Eigen::Index) [with DstEvaluatorTypeT = Eigen::internal::evaluator<Eigen::Map<Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> > >; SrcEvaluatorTypeT = Eigen::internal::evaluator<Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<float, float>, const Eigen::ArrayWrapper<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<float, float>, const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, const Eigen::Replicate<Eigen::PartialReduxExpr<const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, Eigen::internal::member_maxCoeff<float>, 0>, -1, 1> > >, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<float>, const Eigen::Array<float, -1, -1> > > >; Functor = Eigen::internal::assign_op<float, float>; int Version = 0; Eigen::Index = int]’ /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/AssignEvaluator.h:326:9: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/AssignEvaluator.h:862:31: required from ‘static void Eigen::internal::Assignment<DstXprType, SrcXprType, Functor, Eigen::internal::Dense2Dense, Weak>::run(DstXprType&, const SrcXprType&, const Functor&) [with DstXprType = Eigen::Map<Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >; SrcXprType = Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<float, float>, const Eigen::ArrayWrapper<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<float, float>, const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, const Eigen::Replicate<Eigen::PartialReduxExpr<const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, Eigen::internal::member_maxCoeff<float>, 0>, -1, 1> > >, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<float>, const Eigen::Array<float, -1, -1> > >; Functor = Eigen::internal::assign_op<float, float>; Weak = void]’ /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/AssignEvaluator.h:813:49: required from ‘void Eigen::internal::call_assignment_no_alias(Dst&, const Src&, const Func&) [with Dst = Eigen::Map<Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >; Src = Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<float, float>, const Eigen::ArrayWrapper<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<float, float>, const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, const Eigen::Replicate<Eigen::PartialReduxExpr<const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, Eigen::internal::member_maxCoeff<float>, 0>, -1, 1> > >, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<float>, const Eigen::Array<float, -1, -1> > >; Func = Eigen::internal::assign_op<float, float>]’ /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/AssignEvaluator.h:776:27: required from ‘void Eigen::internal::call_assignment(Dst&, const Src&, const Func&, typename Eigen::internal::enable_if<(! Eigen::internal::evaluator_assume_aliasing<Src>::value), void*>::type) [with Dst = Eigen::Map<Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >; Src = Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<float, float>, const Eigen::ArrayWrapper<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<float, float>, const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, const Eigen::Replicate<Eigen::PartialReduxExpr<const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, Eigen::internal::member_maxCoeff<float>, 0>, -1, 1> > >, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<float>, const Eigen::Array<float, -1, -1> > >; Func = Eigen::internal::assign_op<float, float>; typename Eigen::internal::enable_if<(! Eigen::internal::evaluator_assume_aliasing<Src>::value), void*>::type = void*]’ /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/AssignEvaluator.h:754:18: required from ‘void Eigen::internal::call_assignment(Dst&, const Src&) [with Dst = Eigen::Map<Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >; Src = Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<float, float>, const Eigen::ArrayWrapper<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<float, float>, const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, const Eigen::Replicate<Eigen::PartialReduxExpr<const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, Eigen::internal::member_maxCoeff<float>, 0>, -1, 1> > >, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<float>, const Eigen::Array<float, -1, -1> > >]’ /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/Assign.h:66:28: required from ‘Derived& Eigen::MatrixBase<Derived>::operator=(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<float, float>, const Eigen::ArrayWrapper<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<float, float>, const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, const Eigen::Replicate<Eigen::PartialReduxExpr<const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, Eigen::internal::member_maxCoeff<float>, 0>, -1, 1> > >, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<float>, const Eigen::Array<float, -1, -1> > >; Derived = Eigen::Map<Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >]’ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:3416:73: required from here /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/CoreEvaluators.h:713:74: error: no match for call to ‘(const Eigen::internal::scalar_difference_op<float, float>) (Eigen::internal::mapbase_evaluator<Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, const Eigen::Matrix<float, -1, -1> >::CoeffReturnType, Eigen::internal::unary_evaluator<Eigen::Replicate<Eigen::PartialReduxExpr<const Eigen::Map<const Eigen::Matrix<float, -1, -1>, 0, Eigen::Stride<0, 0> >, Eigen::internal::member_maxCoeff<float>, 0>, -1, 1>, Eigen::internal::IndexBased, float>::CoeffReturnType)’ return m_functor(m_lhsImpl.coeff(row, col), m_rhsImpl.coeff(row, col)); ^ /home/pi/tensorflow/tensorflow/lite/tools/make/downloads/eigen/Eigen/src/Core/CoreEvaluators.h:822: confused by earlier errors, bailing out tensorflow/lite/tools/make/Makefile:216: recipe for target '/home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/kernels/activations.o' failed make: *** [/home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/kernels/activations.o] Error 1 In file included from tensorflow/lite/kernels/arg_min_max.cc:17:0: ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h: In function ‘void tflite::optimized_ops::LstmCell(const tflite::LstmCellParams&, const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, float*, const tflite::RuntimeShape&, float*, const tflite::RuntimeShape&, float*, const tflite::RuntimeShape&, float*, tflite::CpuBackendContext*)’: ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2500:31: error: ‘scalar_logistic_op’ is not a member of ‘Eigen::internal’ input_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2500:67: error: expected primary-expression before ‘float’ input_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2502:32: error: ‘scalar_logistic_op’ is not a member of ‘Eigen::internal’ forget_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2502:68: error: expected primary-expression before ‘float’ forget_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2505:32: error: ‘scalar_logistic_op’ is not a member of ‘Eigen::internal’ output_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:2505:68: error: expected primary-expression before ‘float’ output_gate_sm.unaryExpr(Eigen::internal::scalar_logistic_op<float>()) * ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h: In function ‘void tflite::optimized_ops::Logistic(const tflite::RuntimeShape&, const float*, const tflite::RuntimeShape&, float*)’: ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:3760:35: error: ‘scalar_logistic_op’ is not a member of ‘Eigen::internal’ input_map.array().unaryExpr(Eigen::internal::scalar_logistic_op<float>()); ^~~~~ ./tensorflow/lite/kernels/internal/optimized/optimized_ops.h:3760:71: error: expected primary-expression before ‘float’ input_map.array().unaryExpr(Eigen::internal::scalar_logistic_op<float>()); ^~~~~ tensorflow/lite/tools/make/Makefile:216: recipe for target '/home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/kernels/arg_min_max.o' failed make: *** [/home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/kernels/arg_min_max.o] Error 1
`
Installed tensorflow dependencies by changing the eigen mirror
tensorflow/tensorflow@05514a0
started the build script and I get this error mid-compile
tensorflow/lite/kernels/test_main.cc:17:25: fatal error: gtest/gtest.h: No such file or directory
#include <gtest/gtest.h>
^
compilation terminated.
tensorflow/lite/tools/make/Makefile:216: recipe for target '/home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/kernels/test_main.o' failed
make: *** [/home/pi/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/kernels/test_main.o] Error 1
Running your script does not create a bin
folder, and I assume neither of the components that should be created inside. Instead, an obj
folder is created, but it contains none of the files you mention.
Furthermore, I am recreating these steps on a Google Vision Kit. However, when I run my .tflite file, it throws ModuleNotFoundError: No module named 'aiy'
.
Does it matter where in the system I recreate these steps to be able to use AIY's libraries?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.