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

Function Devices

tensorflow/core/distributed_runtime/rpc/grpc_session_test.cc:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace tensorflow {
36
37static SessionOptions Devices(int num_cpus, int num_gpus) {
38 SessionOptions result;
39 (*result.config.mutable_device_count())["CPU"] = num_cpus;
40 (*result.config.mutable_device_count())["GPU"] = num_gpus;
41 return result;
42}
43
44void CreateGraphDef(GraphDef* graph_def, string node_names[3]) {
45 Graph graph(OpRegistry::Global());

Callers 2

TESTFunction · 0.70
CreateInvalidGraphFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected