Skip to content

question about clear the gradient #1

@Bobbyztz

Description

@Bobbyztz

Hi professor,

Should the x.grad.tensor.zero_() in TensorOperations]/auto_diff_fx.py be x.grad.zero_() or x.grad.data.zero_()?

And the coordinates[t, 1] = y.tensor should be coordinates[t, 1] = y.data

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