Needs update for Tensorflow 1.x
Opened this issue · 0 comments
crcdng commented
In Tensorflow 1.0.0, throws
File "fizzbuzz.py", line 52, in <module>
cost = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(py_x, Y))
File "/Users/mstraeubig/miniconda3/envs/tensorflow3/lib/python3.6/site-packages/tensorflow/python/ops/nn_ops.py", line 1578, in softmax_cros
s_entropy_with_logits
labels, logits)
File "/Users/mstraeubig/miniconda3/envs/tensorflow3/lib/python3.6/site-packages/tensorflow/python/ops/nn_ops.py", line 1533, in _ensure_xent
_args
"named arguments (labels=..., logits=..., ...)" % name)
ValueError: Only call `softmax_cross_entropy_with_logits` with named arguments (labels=..., logits=..., ...)
due to API changes. Running tf_upgrade.py
fixes this.