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

Function InitEnv

test/cpp/eager/test_utils.h:127–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127inline void InitEnv(phi::Place place) {
128 // Prepare Device Contexts
129 // Init DeviceContextPool
130 paddle::framework::InitDevices();
131
132 // Init Tracer Place
133 egr::Controller::Instance().SetExpectedPlace(place);
134}
135
136} // namespace eager_test

Callers 15

TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
test_sigmoidFunction · 0.85
test_elementwiseAddFunction · 0.85
test_matmulFunction · 0.85
TESTFunction · 0.85

Calls 3

InstanceFunction · 0.85
InitDevicesFunction · 0.50
SetExpectedPlaceMethod · 0.45

Tested by

no test coverage detected