Skip to content

"requires_grad" attribute on intermediate TensorProxies is unused and misleading #1570

Open
@IvanYashchuk

Description

@IvanYashchuk

Originally posted by @IvanYashchuk in #1563 (comment)

requires_grad of intermediate TensorProxies is ignored in our automatic differentiation code because we haven't done the work of properly threading this property through all computations.
We should remove the ability to query .requires_grad from intermediate TensorProxies completely to avoid similar bugs in the future. This can be achieved by introducing a separate "InputTensorProxy" which has this attribute and removing it from the regular TensorProxy.

cc @Borda @mruberry @apaz-cli

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions