Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytorch/vision
/ map_nested_tensor_object
Function
map_nested_tensor_object
test/common_utils.py:74–76 ·
view source on GitHub ↗
(object, tensor_map_fn)
Source
from the content-addressed store, hash-verified
72
73
74
def
map_nested_tensor_object(object, tensor_map_fn):
75
impl = MapNestedTensorObjectImpl(tensor_map_fn)
76
return
impl(object)
77
78
79
def
is_iterable(obj):
Callers
1
check_out
Function · 0.90
Calls
1
MapNestedTensorObjectImpl
Class · 0.85
Tested by
1
check_out
Function · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…