Skip to content

Commit 9e63139

Browse files
xaduprepytorchmergebot
authored andcommitted
Missing lambda in torch._check (pytorch#164225)
Pull Request resolved: pytorch#164225 Approved by: https://github.com/Skylion007
1 parent 1cce6ef commit 9e63139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/_refs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def should_expand(a: ShapeType, b: ShapeType) -> bool:
476476
# u0==u1 assume the same, no broadcasting!
477477
torch._check(
478478
x == y,
479-
"sizes assumed to be the same due to unbacked broadcasting semantics",
479+
lambda: "sizes assumed to be the same due to unbacked broadcasting semantics",
480480
)
481481

482482
return False

0 commit comments

Comments
 (0)