tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

ImportError: No module named 'tensorflow_addons'

Open wujiexiaowugui opened this issue 4 years ago • 7 comments

Traceback (most recent call last): File "pytorch2pb.py", line 31, in from onnx_tf.backend import prepare File "/usr/local/lib/python3.5/dist-packages/onnx_tf/init.py", line 1, in from . import backend File "/usr/local/lib/python3.5/dist-packages/onnx_tf/backend.py", line 29, in from onnx_tf.common.handler_helper import get_all_backend_handlers File "/usr/local/lib/python3.5/dist-packages/onnx_tf/common/handler_helper.py", line 3, in from onnx_tf.handlers.backend import * # noqa File "/usr/local/lib/python3.5/dist-packages/onnx_tf/handlers/backend/hardmax.py", line 3, in import tensorflow_addons as tfa ImportError: No module named 'tensorflow_addons'

wujiexiaowugui avatar Jul 07 '20 11:07 wujiexiaowugui

When did you encounter this issue? When you were trying a particular tutorial in this repo? If so which tutorial? If not then please open this issue in the pytorch repo.

askhade avatar Jul 07 '20 19:07 askhade

I got this same error when trying to run the OnnxTensorflowImport tutorial. I worked around by installing with pip install tensorflow-addons

rallen10 avatar Jul 17 '20 23:07 rallen10

I got this same error when trying to run the OnnxTensorflowImport tutorial. I worked around by installing with pip install tensorflow-addons

wow, well done

yoosan avatar Nov 06 '20 03:11 yoosan

@chinhuang007 someone working on onnx-tf should take a look at the tutorial notebook linked above

prasanthpul avatar Sep 03 '21 19:09 prasanthpul

@prasanthpul Sure, will do.

chinhuang007 avatar Sep 03 '21 22:09 chinhuang007

I got this same error when trying to run the OnnxTensorflowImport tutorial. I worked around by installing with pip install tensorflow-addons

And remember to find a release match your tf version at https://github.com/tensorflow/addons/releases.

ztwater avatar Jan 21 '22 08:01 ztwater