| 35 | namespace tensorflow { |
| 36 | |
| 37 | static 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 | |
| 44 | void CreateGraphDef(GraphDef* graph_def, string node_names[3]) { |
| 45 | Graph graph(OpRegistry::Global()); |
no outgoing calls
no test coverage detected