Skip to content

Commit d3cfd00

Browse files
tugsbayasgalanfacebook-github-bot
authored andcommitted
Change test case to not use deprecated constructor
Summary: Title Reviewed By: JacobSzwejbka, angelayi Differential Revision: D56594606 fbshipit-source-id: 914052624702341b6753af67111a8d00b0213264
1 parent 44d4bac commit d3cfd00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exir/emit/test/test_emit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ def forward(
194194
self, x: torch.Tensor
195195
) -> Tuple[torch.Tensor, torch.Tensor, List[torch.Tensor]]:
196196
return (
197-
torch.Tensor(1),
198-
torch.Tensor(2),
197+
torch.tensor(1),
198+
torch.tensor(2),
199199
[torch.sin(x).max(), torch.cos(x).max()],
200200
)
201201

0 commit comments

Comments
 (0)