Invokes the Placer on "graph". If no DeviceSet is specified, the placement will use the default DeviceSet (of 10 CPU and 10 GPU devices). REQUIRES: "*graph" was produced by the most recent call to BuildGraph.
| 242 | // |
| 243 | // REQUIRES: "*graph" was produced by the most recent call to BuildGraph. |
| 244 | Status Place(Graph* graph, DeviceSet* devices, Device* default_local_device, |
| 245 | bool allow_soft_placement, bool log_device_placement) { |
| 246 | Placer placer(graph, "", &graph->flib_def(), devices, default_local_device, |
| 247 | allow_soft_placement, log_device_placement); |
| 248 | return placer.Run(); |
| 249 | } |
| 250 | |
| 251 | Status CallOptPassesAndPlace(Graph* graph, DeviceSet* devices, |
| 252 | bool allow_soft_placement, |