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

Function Devices

tensorflow/core/debug/grpc_session_debug_test.cc:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43namespace {
44
45SessionOptions Devices(int num_cpus, int num_gpus) {
46 SessionOptions result;
47 (*result.config.mutable_device_count())["CPU"] = num_cpus;
48 (*result.config.mutable_device_count())["GPU"] = num_gpus;
49 return result;
50}
51
52void CreateGraphDef(GraphDef* graph_def, string node_names[3]) {
53 Graph graph(OpRegistry::Global());

Callers 1

TEST_FFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected