Closed youkaichao closed 7 years ago
grads are used for visualization with tensorboard in line 271 in model.py:
for grad,var in grads:
if grad is not None:
tf.summary.histogram(var.op.name + '/gradients', grad)
, which is very helpful for debugging, so I will keep it. Thanks!
I once tried to write a customed optimizer and find compute_gradients is extremely ineffective.
Since you don't need the grad actually, I highly recommend you change the code to