MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / _shallow_repr

Method _shallow_repr

python/oneflow/nn/graph/proxy.py:563–574  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

561 return main_str
562
563 def _shallow_repr(self):
564 shallow_repr = (
565 "("
566 + self.to(GraphModule)._type
567 + ":"
568 + self.to(GraphModule)._name_prefix
569 + self.to(GraphModule)._name
570 + ":"
571 + self._oneflow_internal_origin__._shallow_repr()
572 + ")"
573 )
574 return shallow_repr
575
576 def __print(self, s_level=2, v_level=0, msg: str = ""):
577 r"""Do print according to info level.

Callers 3

__call__Method · 0.95
__repr__Method · 0.95
_print_stateMethod · 0.45

Calls 1

toMethod · 0.45

Tested by

no test coverage detected