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

Method _rollback

python/paddle/base/framework.py:7319–7325  ·  view source on GitHub ↗

Exit a code block, i.e., roll back to the parent block. Returns: None

(self)

Source from the content-addressed store, hash-verified

7317 self.current_block_idx = 0
7318
7319 def _rollback(self):
7320 """
7321 Exit a code block, i.e., roll back to the parent block.
7322 Returns:
7323 None
7324 """
7325 self.current_block_idx = self.current_block().parent_idx
7326
7327 def _sync_with_cpp(self):
7328 """

Callers 3

__exit__Method · 0.80
_append_backward_ops_Function · 0.80

Calls 1

current_blockMethod · 0.95

Tested by

no test coverage detected