MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / __str__

Method __str__

python/paddle/base/framework.py:6413–6423  ·  view source on GitHub ↗

Get the protobuf debug string of this Program. Returns: (str): The protobuf debug string. Raises: ValueError: If any of required fields is not set.

(self)

Source from the content-addressed store, hash-verified

6411 self._current_role = tmp_role
6412
6413 def __str__(self):
6414 """
6415 Get the protobuf debug string of this Program.
6416
6417 Returns:
6418 (str): The protobuf debug string.
6419
6420 Raises:
6421 ValueError: If any of required fields is not set.
6422 """
6423 return self._to_readable_code()
6424
6425 def _to_readable_code(self, skip_op_callstack=True):
6426 """

Callers 1

__repr__Method · 0.95

Calls 1

_to_readable_codeMethod · 0.95

Tested by

no test coverage detected