Closed Matrixsun closed 7 years ago
0.12.0版本中loss还是在contrib中的,修改之后会导致错误:
AttributeErrorTraceback (most recent call last)
<ipython-input-7-963da2e487f4> in <module>()
1
----> 2 loss = tf.losses.mean_squared_error(y, y_)
3 train_step = tf.train.AdamOptimizer(0.001).minimize(loss)
4
5 with tf.Session() as sess:
AttributeError: 'module' object has no attribute 'losses'
修改了MSE API 的调用方式