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

Method _pprint_impl

caffe2/python/schema.py:495–500  ·  view source on GitHub ↗
(self, indent, str_buffer)

Source from the content-addressed store, hash-verified

493 return None
494
495 def _pprint_impl(self, indent, str_buffer):
496 str_buffer.write(' ' * indent + "Struct( \n")
497 for name, field in self.fields.items():
498 str_buffer.write(' ' * (indent + 1) + "{}=".format(name) + "\n")
499 field._pprint_impl(indent=indent + 2, str_buffer=str_buffer)
500 str_buffer.write(' ' * indent + ") \n")
501
502 def __contains__(self, item):
503 field = self._get_field_by_nested_name(item)

Callers

nothing calls this directly

Calls 4

writeMethod · 0.45
itemsMethod · 0.45
formatMethod · 0.45
_pprint_implMethod · 0.45

Tested by

no test coverage detected