Commit 2a1f1155 authored by ksellesk's avatar ksellesk
Browse files

Fix AttributeError in resnet.py

There is no function tf.softmax() in Tensorflow 1.x.

When running the old code, Python interpreter complains:

File "resnet.py", line 152, in res_net_model
prediction, loss = res_net(x, y)
File "resnet.py", line 148, in res_net
return tf.softmax(logits), loss
AttributeError: 'module' object has no attribute 'softmax'
parent 9a04938f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment