2ef5a2c1e0ffc0fd8932debd03ab6a9e484957a2,cleverhans/utils_tf.py,,model_eval,#Any#Any#Any#Any#Any#Any#Any#Any#Any#,202
Before Change
tf.argmax(predictions,
axis=tf.rank(predictions) - 1))
acc_value = tf.reduce_mean(tf.to_float(correct_preds))
// Init result var
accuracy = 0.0
After Change
start = batch * args.batch_size
end = min(len(X_test), start + args.batch_size)
cur_batch_size = end - start
X_cur[:cur_batch_size] = X_test[start:end]
Y_cur[:cur_batch_size] = Y_test[start:end]
// The last batch may be smaller than all others, so we need to
// account for variable batch size here
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: tensorflow/cleverhans
Commit Name: 2ef5a2c1e0ffc0fd8932debd03ab6a9e484957a2
Time: 2017-09-26
Author: fartash@google.com
File Name: cleverhans/utils_tf.py
Class Name:
Method Name: model_eval
Project Name: analysiscenter/batchflow
Commit Name: 7fd49e352027b5e24d0f8ede917877e5d5ef945f
Time: 2017-11-10
Author: rhudor@gmail.com
File Name: dataset/models/tf/vgg.py
Class Name: VGG
Method Name: _build
Project Name: tensorflow/magenta
Commit Name: 98e16e08206a4ff9a5947ecb834bc8c017cd9264
Time: 2017-09-18
Author: iansimon@users.noreply.github.com
File Name: magenta/models/shared/events_rnn_graph.py
Class Name:
Method Name: build_graph
Project Name: HyperGAN/HyperGAN
Commit Name: dde64019ba3c48c68def58c77cf935669dc92b77
Time: 2019-06-21
Author: mikkel@255bits.com
File Name: hypergan/train_hooks/experimental/match_support_train_hook.py
Class Name: MatchSupportTrainHook
Method Name: __init__