bert-multi-gpu icon indicating copy to clipboard operation
bert-multi-gpu copied to clipboard

ImportError: No module named 'tensorflow.python.distribute.cross_device_ops'

Open LeoWood opened this issue 7 years ago • 6 comments

When I ran the script run_custom_classifier.py, the error occured: ImportError: No module named 'tensorflow.python.distribute.cross_device_ops'

python: 3.5.2 tensorflow-gpu: 1.11.0 ubuntu 16.04

How can I handle this? Thanks

LeoWood avatar Sep 17 '19 12:09 LeoWood

image

LeoWood avatar Sep 17 '19 12:09 LeoWood

Please try upgrading TensorFlow to 1.14.

haoyuhu avatar Sep 17 '19 17:09 haoyuhu

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 17 '19 17:10 stale[bot]

Please try upgrading TensorFlow to 1.14.

Yep, it succeed with this suggestions. Thanks Haha.

shishishu avatar Nov 20 '19 02:11 shishishu

Tensorflow version 1.15does not work,only 1.14?

bigzhouj avatar Feb 27 '20 07:02 bigzhouj

Tensorflow version 1.15does not work,only 1.14?

TF verison above 1.14 is ok.

haoyuhu avatar Feb 27 '20 08:02 haoyuhu