Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
a33d6e2d
Unverified
Commit
a33d6e2d
authored
Jul 12, 2021
by
Nicolas Hug
Committed by
GitHub
Jul 12, 2021
Browse files
[FBcode->GH] [JIT] Add reference semantics to TorchScript classes (#44324) (#4166)
Co-authored-by:
Meghan Lele
<
meghanl@fb.com
>
parent
23b87603
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/test_transforms_tensor.py
test/test_transforms_tensor.py
+1
-1
No files found.
test/test_transforms_tensor.py
View file @
a33d6e2d
...
@@ -649,7 +649,7 @@ def test_compose(device):
...
@@ -649,7 +649,7 @@ def test_compose(device):
t
=
T
.
Compose
([
t
=
T
.
Compose
([
lambda
x
:
x
,
lambda
x
:
x
,
])
])
with
pytest
.
raises
(
RuntimeError
,
match
=
"
Could not get name of python class object
"
):
with
pytest
.
raises
(
RuntimeError
,
match
=
"
cannot call a value of type 'Tensor'
"
):
torch
.
jit
.
script
(
t
)
torch
.
jit
.
script
(
t
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment