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

Function Tuple

caffe2/python/schema.py:937–941  ·  view source on GitHub ↗

Creates a Struct with default, sequential, field names of given types.

(*fields)

Source from the content-addressed store, hash-verified

935
936
937def Tuple(*fields):
938 """
939 Creates a Struct with default, sequential, field names of given types.
940 """
941 return NamedTuple('field', *fields)
942
943
944def RawTuple(num_fields, name_prefix='field'):

Callers 1

as_recordFunction · 0.85

Calls 1

NamedTupleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…