onnx-tensorflow icon indicating copy to clipboard operation
onnx-tensorflow copied to clipboard

tensorflow1.14, tf1.14

Open dollarser opened this issue 4 years ago • 5 comments

Since I have to use tensorflow 1.14, I would like to ask which version of onnx-tf is suitable for tensorflow 1.14.

dollarser avatar Dec 10 '20 17:12 dollarser

Please try 1.5.0 which might work and 1.4.0 which should work with tf 1.14. Currently onnx-tf follows ONNX versions. Therefore, it doesn't have a release for each Tensorflow version that can be installed.

chinhuang007 avatar Dec 10 '20 18:12 chinhuang007

Please try 1.5.0 which might work and 1.4.0 which should work with tf 1.14. Currently onnx-tf follows ONNX versions. Therefore, it doesn't have a release for each Tensorflow version that can be installed.

Sorry to disturb you again, I found that there is no onnx-tf==1.4.0 version. So I tried 1.5.0, but it didn't work. Some warnings are generated during the process, and then the conversion process is terminated. I would like to ask where to get the 1.4.0 version of onnx-tf, or whether the following problems may be solved. Thanks.

/onnx_tf/common/handler_helper.py:37: UserWarning: Unknown op ConstantFill in domain `ai.onnx`.
  handler.ONNX_OP, handler.DOMAIN or "ai.onnx"))

dollarser avatar Dec 13 '20 10:12 dollarser

Please try onnx-tf==1.3.0. Your onnx model has ConstantFill, which is an experimental op, removed since onnx 1.4.1. So 1.3.0 might work.

chinhuang007 avatar Dec 14 '20 23:12 chinhuang007

I have another problem, when i try to "from onnx_tf.backend import prepare" on onnx=1.11.0, onnx-tf==1.3.0 and tf-1.14 i got this error message: ImportError: cannot import name 'trace' from 'tensorflow.python.profiler' (/usr/local/lib/python3.7/dist-packages/tensorflow/python/profiler/init.py) could you give me some advice.

stzhang1994 avatar Jul 04 '22 09:07 stzhang1994

TF 1.14 is about 3 years old and not tested with recent onnx and onnx-tf. My suggestion is to upgrade to TF 2.8.

chinhuang007 avatar Jul 07 '22 21:07 chinhuang007