AttributeError: module 'tensorflow' has no attribute 'ConfigProto'

前端 未结 5 1829
庸人自扰
庸人自扰 2021-01-01 10:16

I\'m working in Pytorch. I can import tensorflow (version 1.13.1) and need ConfigProto:

import tensorflow as tf
config = tf.ConfigProto(intra_op_parallelism         


        
5条回答
  •  旧时难觅i
    2021-01-01 10:45

    I was with a similar error, but i had tensorflow 1.14, ubuntu 18.04 and GTX 1050ti. So a installed properly conda (lastest version - 5.1) even with this the error persisted, so a upgraded tensorflow/tensorflow-gpu to -version tensorflow==2.0.0-beta0 and worked for me.

提交回复
热议问题