-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show requires_grad info for torch tensors and parameters. (#59)
For `Tensor`s, we add requires_grad=True to the summary when that flag is set on the tensor. For `nn.Parameter`s, we assume gradients are required by default and add requires_grad=False when the parameter is frozen. Summary shows regardless of whether or not autovizualization is on. Fixes #51.
- Loading branch information
1 parent
022f8ee
commit d08cd70
Showing
3 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters