简体   繁体   中英

Error: ModuleNotFoundError: No module named 'tensorflow.contrib'

I'm using Tensorflow 2.0 but getting error while executing train.py.

from tensorflow.contrib.memory_stats.python.ops.memory_stats_ops import BytesInUse ModuleNotFoundError: No module named 'tensorflow.contrib'

can anyone please help me with finding tf.contrib module in tensorflow2.0

tensorflow.contrib is being removed in version 2.0, you therefore need version <= 1.14 to operate tflearn (by the way, this is a TFlearn issue, not a tensorflow one). ( source )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM