MCPcopy Create free account
hub / github.com/pytorch/pytorch / OpSpec

Class OpSpec

caffe2/python/layer_test_util.py:25–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23# pyre-fixme[13]: Pyre can't detect attribute initialization through the
24# super().__new__ call
25class OpSpec(namedtuple("OpSpec", "type input output arg")):
26
27 def __new__(cls, op_type, op_input, op_output, op_arg=None):
28 return super(OpSpec, cls).__new__(cls, op_type, op_input,
29 op_output, op_arg)
30
31
32class LayersTestCase(test_util.TestCase):

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…