1d143dad940343d7590bd497e8812def981050e1,examples/basic_tutorials/1_mnist_mlp_eager_mode.py,,,#,36
Before Change
train_loss, train_acc, n_iter = 0, 0, 0
for X_batch, y_batch in tl.iterate.minibatches(X_train, y_train, batch_size, shuffle=False):
_logits = MLP(X_batch)
train_loss += tl.cost.cross_entropy(_logits, y_batch, name="eval_loss")
train_acc += np.mean(np.equal(np.argmax(_logits, 1), y_batch))
n_iter += 1
After Change
train_loss, train_acc, n_iter = 0, 0, 0
for X_batch, y_batch in tl.iterate.minibatches(X_train, y_train, batch_size, shuffle=False):
_logits = MLP(X_batch).outputs
train_loss += tl.cost.cross_entropy(_logits, y_batch, name="eval_loss")
train_acc += np.mean(np.equal(np.argmax(_logits, 1), y_batch))
n_iter += 1
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: tensorlayer/tensorlayer
Commit Name: 1d143dad940343d7590bd497e8812def981050e1
Time: 2019-01-25
Author: zhangjqsmiling@gmail.com
File Name: examples/basic_tutorials/1_mnist_mlp_eager_mode.py
Class Name:
Method Name:
Project Name: tensorlayer/tensorlayer
Commit Name: 1d143dad940343d7590bd497e8812def981050e1
Time: 2019-01-25
Author: zhangjqsmiling@gmail.com
File Name: examples/basic_tutorials/2_mnist_mlp_graph_mode.py
Class Name:
Method Name: