Skip to content
New issue

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

Docker Image - Cannot Import Tensorflow #10

Open
jo-tham opened this issue May 3, 2023 · 2 comments
Open

Docker Image - Cannot Import Tensorflow #10

jo-tham opened this issue May 3, 2023 · 2 comments

Comments

@jo-tham
Copy link

jo-tham commented May 3, 2023

Hello
I built and run the image as described, with small modifications for mac M1 host and V2L target

DRP-AI Translator is v1.82 (https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rz-arm-based-high-end-32-64-bit-mpus/drp-ai-translator)

docker build -t drp-ai_tvm_v2ma_image --platform linux/amd64 --build-arg SDK="/opt/poky/3.1.14" --build-arg PRODUCT="V2L" .

docker run -it --platform linux/amd64 --name drp-ai_tvm_v2ma_container -v $(pwd)/data:/drp-ai_tvm/data drp-ai_tvm_v2ma_image

However, there is some issue with tensorflow in the image, e.g.


root@cd50204bcf68:/drp-ai_tvm# python3
Python 3.8.10 (default, Mar 13 2023, 10:26:41) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/descriptor_database.cc:560] Invalid file descriptor data passed to EncodedDescriptorDatabase::Add().
[libprotobuf FATAL external/com_google_protobuf/src/google/protobuf/descriptor.cc:1986] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size): 
terminate called after throwing an instance of 'google::protobuf::FatalException'
  what():  CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size): 
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted

Any suggestion to resolve this?

@jo-tham
Copy link
Author

jo-tham commented May 3, 2023

in the meantime, removing tensorflow import in compile_tflite_model.py seems to work, as tf is not used in that module.

@simobepu
Copy link
Collaborator

Hello Jotham-san,
Our tool works only with Intel-based Linux and it does not support Apple M1-based environments.
This problem may be caused by the difference between the Intel and M1 environments, so I'm sorry, but could you try it in intel-based environment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants