| 43 | namespace { |
| 44 | |
| 45 | SessionOptions 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 | |
| 52 | void CreateGraphDef(GraphDef* graph_def, string node_names[3]) { |
| 53 | Graph graph(OpRegistry::Global()); |