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

Function _current_expected_place

python/paddle/base/framework.py:866–869  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

864
865
866def _current_expected_place():
867 if in_pir_mode():
868 return core.Place()
869 return _current_expected_place_()
870
871
872def _set_dygraph_tracer_expected_place(place):

Callers 15

_lod_tensor2varbaseFunction · 0.90
loadFunction · 0.90
_get_placeFunction · 0.90
gaussianFunction · 0.90
randnFunction · 0.90
uniformFunction · 0.90
randintFunction · 0.90
randint_likeFunction · 0.90
randpermFunction · 0.90
randFunction · 0.90
get_executorFunction · 0.90
_init_threadMethod · 0.90

Calls 3

in_pir_modeFunction · 0.85
_current_expected_place_Function · 0.85
PlaceMethod · 0.45

Tested by 3

test_place_guardMethod · 0.72
skip_if_not_cpu_bf16Method · 0.72
skip_if_not_cpuMethod · 0.72