c48128868e7edcbf354ff79fa29fa0b79740b2f4,scripts/tf_cnn_benchmarks/benchmark_cnn.py,BenchmarkCNN,_build_fetches,#BenchmarkCNN#Any#Any#Any#Any#Any#Any#Any#Any#Any#,2233
Before Change
all_grads = []
for grad, var in avg_grads:
all_grads.append(tf.reshape(grad, [-1]))
grads = tf.abs(tf.concat(all_grads, 0) )
// exclude grads with zero values.
indices_for_non_zero_grads = tf.where(tf.not_equal(grads, 0))
log_grads = tf.reshape(
After Change
self.model, examples_per_step)
if gradient_clip is not None:
with tf.name_scope("clip_gradients"):
clipped_grads = [(tf.clip_by_value(grad, -gradient_clip,
+gradient_clip), var)
for grad, var in avg_grads]
else:
clipped_grads = avg_grads
learning_rate = tf.identity(learning_rate, name="learning_rate_tensor")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: tensorflow/benchmarks
Commit Name: c48128868e7edcbf354ff79fa29fa0b79740b2f4
Time: 2018-07-18
Author: reedwm@google.com
File Name: scripts/tf_cnn_benchmarks/benchmark_cnn.py
Class Name: BenchmarkCNN
Method Name: _build_fetches
Project Name: tensorflow/ranking
Commit Name: 27aef1f3aa3dff22df125ca8a2fa4a4447ac6234
Time: 2019-08-13
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/utils.py
Class Name:
Method Name: organize_valid_indices
Project Name: reinforceio/tensorforce
Commit Name: 6ed4767b321be60ba8329b5356db73004a3d3b75
Time: 2019-08-31
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/estimators/estimator.py
Class Name: Estimator
Method Name: tf_reset