尝试将 TensorFlow 模型转换为 TensorFlow lite,在运行 toco --help 时出现错误 [英] Trying to convert TensorFlow model to TensorFlow lite, when running toco --help gives me an error
本文介绍了尝试将 TensorFlow 模型转换为 TensorFlow lite,在运行 toco --help 时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是 Windows 10、python 2.7、tensorflow 1.7.
I am on Windows 10, python 2.7, tensorflow 1.7.
尝试调用 toco - "toco --help" 时,出现下一个错误.
When attempting to call toco - "toco --help", gives me the next error.
File "appdata\local\programs\python\python36\lib\runpy.py", line 193, in
_run_module_as_main
"__main__", mod_spec)
File "appdata\local\programs\python\python36\lib\runpy.py", line 85, in
_run_code
exec(code, run_globals)
File "AppData\Local\Programs\Python\Python36\Scripts\toco.exe\__main__.py",
line 5, in <module>
ModuleNotFoundError: No module named
'tensorflow.contrib.lite.toco.python.toco_wrapper'
推荐答案
TensorFlow Lite 尚不支持 Windows.我们正在努力...
TensorFlow Lite doesn't yet support Windows. We're working on it...
与此同时,您可能想看看围绕提议的这里 -- 即设置虚拟机.
In the mean time, you may want to look at the work around proposed here -- i.e. set up Virtual Machine.
更具体的转换代码,向前推进(版本 1.9 及更高版本)您应该使用 tflite_convert
.
More specific to the conversion code, moving forward (version 1.9 and beyond) you should use tflite_convert
.
这篇关于尝试将 TensorFlow 模型转换为 TensorFlow lite,在运行 toco --help 时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文