MCPcopy
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
74def map_nested_tensor_object(object, tensor_map_fn):
75 impl = MapNestedTensorObjectImpl(tensor_map_fn)
76 return impl(object)
77
78
79def is_iterable(obj):

Callers 1

check_outFunction · 0.90

Calls 1

Tested by 1

check_outFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…