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

Function NamedTuple

caffe2/python/schema.py:932–934  ·  view source on GitHub ↗
(name_prefix, *fields)

Source from the content-addressed store, hash-verified

930
931
932def NamedTuple(name_prefix, *fields):
933 return Struct(* [('%s_%d' % (name_prefix, i), field)
934 for i, field in enumerate(fields)])
935
936
937def Tuple(*fields):

Callers 5

_out_wrapperFunction · 0.85
TupleFunction · 0.85
RawTupleFunction · 0.85

Calls 1

StructClass · 0.85

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…