profile
viewpoint

Ask questionsmodule 'tensorflow' has no attribute 'ConfigProto'

import tensorflow as tf
import os
config = tf.ConfigProto()

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

Answer questions blairhan

I guess you're using tensorflow 2.x. In that case, use tf.compat.v1.ConfigProto() instead.

useful!
source:https://uonfu.com/
Github User Rank List