Errors & Sulotions
1. tensorflow1.12.0 install error (from source):
TypeError: __init__() got an unexpected keyword argument 'serialized_options'
solution:
sudo pip install -U protobuf
2. tensorflow1.12.0 install from source:
while use bazel, it uses lots of RAM, so you can set this para:
--local_resources=<comma-separated available amount of RAM (in MB), CPU (in cores) and available I/O (1.0 being average workstation)>
default: see descriptionExplicitly set amount of local resources available to Bazel. By default, Bazel will query system configuration to estimate amount of RAM (in MB) and number of CPU cores available for the locally executed build actions. It would also assume default I/O capabilities of the local workstation (1.0). This options allows to explicitly set all 3 values. Note, that if this option is used, Bazel will ignore --ram_utilization_factor.
3. ImportError: No module named keras_preprocessing
sudo pip install keras_applications==1.0.4
sudo pip install keras_preprocessing==1.0.2
sudo pip install h5py==2.8.0
4. tensorflow android libs version require:
tensorflow-cpu 1.8
bazel 0.10.0
sdk api23
ndk 14b
android studio build tools 26.0.2
5. android studio sdk download:
- https://dl-ssl.google.com/android/repository/build-tools_r26.0.2-linux.zip
https://dl-ssl.google.com/android/repository/repository2-1.xml