Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaddlePaddle/Paddle
/ _set_expected_place
Function
_set_expected_place
python/paddle/base/framework.py:877–880 ·
view source on GitHub ↗
(place)
Source
from the content-addressed store, hash-verified
875
876
877
def
_set_expected_place(place):
878
global _global_expected_place_
879
_global_expected_place_ = place
880
_set_dygraph_tracer_expected_place(place)
881
882
883
def
_cpu_num():
Callers
7
init_parallel_env
Function · 0.90
_thread_loop
Method · 0.90
_thread_loop
Method · 0.90
_reader_thread_loop_for_multiprocess
Method · 0.90
_reader_thread_loop_for_singleprocess
Method · 0.90
__thread_main__
Method · 0.90
init_process_group
Function · 0.90
Calls
1
_set_dygraph_tracer_expected_place
Function · 0.85
Tested by
no test coverage detected