tensorflow_tutorials icon indicating copy to clipboard operation
tensorflow_tutorials copied to clipboard

Confusing / Unnecessary Code

Open chrisyeh96 opened this issue 8 years ago • 0 comments

On line 55 of the CS 224N linear regression example, loss_val is a scalar, so there shouldn't be any reason to call .mean() on it. It is a scalar because no axis parameter is given in the loss = tf.reduce_mean() call on line 38.

chrisyeh96 avatar Feb 08 '17 06:02 chrisyeh96