MCPcopy Index your code
hub / github.com/pytorch/pytorch / RawTuple

Function RawTuple

caffe2/python/schema.py:944–950  ·  view source on GitHub ↗

Creates a tuple of `num_field` untyped scalars.

(num_fields, name_prefix='field')

Source from the content-addressed store, hash-verified

942
943
944def RawTuple(num_fields, name_prefix='field'):
945 """
946 Creates a tuple of `num_field` untyped scalars.
947 """
948 assert isinstance(num_fields, int)
949 assert num_fields >= 0
950 return NamedTuple(name_prefix, *([np.void] * num_fields))
951
952
953def from_dtype(dtype, _outer_shape=()):

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
NamedTupleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…