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

Method add_child

caffe2/python/schema.py:993–999  ·  view source on GitHub ↗
(self, name, type_str='')

Source from the content-addressed store, hash-verified

991 self.field = None
992
993 def add_child(self, name, type_str=''):
994 for child in self.children:
995 if child.name == name and child.type_str == type_str:
996 return child
997 child = _SchemaNode(name, type_str)
998 self.children.append(child)
999 return child
1000
1001 def get_field(self):
1002

Callers 1

from_column_listFunction · 0.45

Calls 2

_SchemaNodeClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected