8000 Update on "Remove warnings on non-buffer tensor constants" · pytorch/pytorch@9a3b444 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a3b444

Browse files
Update on "Remove warnings on non-buffer tensor constants"
Export already registers tensor constants directly in the graph and this is also true for Torchbind objects. This removes warning that pollutes the output. cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv Differential Revision: [D70577856](https://our.internmc.facebook.com/intern/diff/D70577856) [ghstack-poisoned]
2 parents 84eaf29 + bbcef4a commit 9a3b444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/fx/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ def check_arg(arg: Node, n: Optional[Node] = None) -> None:
17791779
f"Node {node} target {node.target} {atom} of {seen_qualname} does "
17801780
"not reference an nn.Module"
17811781
)
1782-
1782+
17831783
m_itr = new_m_itr
17841784

17851785
@compatibility(is_backward_compatible=True)

0 commit comments

Comments
 (0)
0