MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CreateSession

Function CreateSession

tensorflow/core/platform/device_tracer_test.cc:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52namespace {
53
54std::unique_ptr<Session> CreateSession() {
55 SessionOptions options;
56 (*options.config.mutable_device_count())["CPU"] = 1;
57 (*options.config.mutable_device_count())["GPU"] = 1;
58 options.config.set_allow_soft_placement(true);
59 return std::unique_ptr<Session>(NewSession(options));
60}
61
62class DeviceTracerTest : public ::testing::Test {
63 public:

Callers 4

TEST_FFunction · 0.70
ExecuteGraphMethod · 0.50
CreateSessionMethod · 0.50
TEST_FFunction · 0.50

Calls 1

NewSessionFunction · 0.50

Tested by

no test coverage detected