Skip to content

Tensor printing should display requires_grad #6768

@zou3519

Description

@zou3519

I think one or more of the following would be nice:

  • tensor printing displays requires_grad
  • tensor printing displays "if this tensor is a leaf node" (but find a better name for this). Most of the times when I want to know if my tensor requires_grad I want to know if it gradients will accumulate in this.

cc @li-roy @gchanan @ssnl

Metadata

Metadata

Assignees

Labels

module: printingIssues related to the printing format of tensorstodoNot as important as medium or high priority tasks, but we will work on these.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions