Skip to content

Confusing / Unnecessary Code #1

Description

@chrisyeh96

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions