Skip to content

Commit a33d6e2

Browse files
NicolasHugMeghan Lele
and
Meghan Lele
authored
[FBcode->GH] [JIT] Add reference semantics to TorchScript classes (#44324) (#4166)
Co-authored-by: Meghan Lele <meghanl@fb.com>
1 parent 23b8760 commit a33d6e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_transforms_tensor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def test_compose(device):
649649
t = T.Compose([
650650
lambda x: x,
651651
])
652-
with pytest.raises(RuntimeError, match="Could not get name of python class object"):
652+
with pytest.raises(RuntimeError, match="cannot call a value of type 'Tensor'"):
653653
torch.jit.script(t)
654654

655655

0 commit comments

Comments
 (0)