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
0e2a5ae7
Unverified
Commit
0e2a5ae7
authored
Nov 13, 2023
by
vfdev
Committed by
GitHub
Nov 13, 2023
Browse files
Added support for tv tensors in torch compile for func ops (#8110)
Co-authored-by:
Nicolas Hug
<
nh.nicolas.hug@gmail.com
>
parent
517f6d3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
torchvision/tv_tensors/__init__.py
torchvision/tv_tensors/__init__.py
+4
-0
No files found.
torchvision/tv_tensors/__init__.py
View file @
0e2a5ae7
...
@@ -8,6 +8,10 @@ from ._tv_tensor import TVTensor
...
@@ -8,6 +8,10 @@ from ._tv_tensor import TVTensor
from
._video
import
Video
from
._video
import
Video
# TODO: Fix this. We skip this method as it leads to
# RecursionError: maximum recursion depth exceeded while calling a Python object
# Until `disable` is removed, there will be graph breaks after all calls to functional transforms
@
torch
.
compiler
.
disable
def
wrap
(
wrappee
,
*
,
like
,
**
kwargs
):
def
wrap
(
wrappee
,
*
,
like
,
**
kwargs
):
"""[BETA] Convert a :class:`torch.Tensor` (``wrappee``) into the same :class:`~torchvision.tv_tensors.TVTensor` subclass as ``like``.
"""[BETA] Convert a :class:`torch.Tensor` (``wrappee``) into the same :class:`~torchvision.tv_tensors.TVTensor` subclass as ``like``.
...
...
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