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

Method _patch_xdoctest

tools/sampcd_processor.py:406–414  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

404 self.directive_prefix = 'xdoctest'
405
406 def _patch_xdoctest(self):
407 if self._patch_global_state:
408 _patch_global_state(self.debug, self.verbose)
409
410 if self._patch_tensor_place:
411 _patch_tensor_place()
412
413 if self._patch_float_precision is not None:
414 _patch_float_precision(self._patch_float_precision)
415
416 def _parse_directive(
417 self, docstring: str

Callers 2

__init__Method · 0.95
_executeMethod · 0.95

Calls 3

_patch_global_stateFunction · 0.85
_patch_tensor_placeFunction · 0.85
_patch_float_precisionFunction · 0.85

Tested by

no test coverage detected