Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
866
def
_current_expected_place():
867
if
in_pir_mode():
868
return
core.Place()
869
return
_current_expected_place_()
870
871
872
def
_set_dygraph_tracer_expected_place(place):
Callers
15
_lod_tensor2varbase
Function · 0.90
load
Function · 0.90
_get_place
Function · 0.90
gaussian
Function · 0.90
randn
Function · 0.90
uniform
Function · 0.90
randint
Function · 0.90
randint_like
Function · 0.90
randperm
Function · 0.90
rand
Function · 0.90
get_executor
Function · 0.90
_init_thread
Method · 0.90
Calls
3
in_pir_mode
Function · 0.85
_current_expected_place_
Function · 0.85
Place
Method · 0.45
Tested by
3
test_place_guard
Method · 0.72
skip_if_not_cpu_bf16
Method · 0.72
skip_if_not_cpu
Method · 0.72