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

Function _patch_global_state

tools/sampcd_processor.py:62–71  ·  view source on GitHub ↗
(debug, verbose)

Source from the content-addressed store, hash-verified

60
61
62def _patch_global_state(debug, verbose):
63 # patch xdoctest global_state
64 from xdoctest import global_state
65
66 _debug_xdoctest = debug and verbose > 2
67 global_state.DEBUG = _debug_xdoctest
68 global_state.DEBUG_PARSER = global_state.DEBUG_PARSER and _debug_xdoctest
69 global_state.DEBUG_CORE = global_state.DEBUG_CORE and _debug_xdoctest
70 global_state.DEBUG_RUNNER = global_state.DEBUG_RUNNER and _debug_xdoctest
71 global_state.DEBUG_DOCTEST = global_state.DEBUG_DOCTEST and _debug_xdoctest
72
73
74def _patch_tensor_place():

Callers 1

_patch_xdoctestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected