tensorflow_tutorials
tensorflow_tutorials copied to clipboard
Confusing / Unnecessary Code
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.