2019-12-20から1日間の記事一覧
TensorFlow 2.0.0へのアップデートで出くわしたエラー:AttributeError: module 'tensorflow' has no attribute 'placeholder'
前提 TensorFlow 2.0.0 エラー内容 TensorFlow 1.4.0で書かれたコード g = tf.Graph() with g.as_default(): x = tf.placeholder(dtype=tf.float32, shape=(None), name='x') w = tf.Variable(2.0, name='weight') b = tf.Variable(0.7, name='bias') z = w*…