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

Method create_internal

caffe2/python/schema.py:425–431  ·  view source on GitHub ↗
(nested_name, field)

Source from the content-addressed store, hash-verified

423
424 def _struct_from_nested_name(self, nested_name, field):
425 def create_internal(nested_name, field):
426 names = nested_name.split(FIELD_SEPARATOR, 1)
427 if len(names) == 1:
428 added_field = field
429 else:
430 added_field = create_internal(names[1], field)
431 return Struct((names[0], added_field))
432
433 names = nested_name.split(FIELD_SEPARATOR, 1)
434 assert len(names) >= 2

Callers

nothing calls this directly

Calls 2

StructClass · 0.85
splitMethod · 0.45

Tested by

no test coverage detected