| 59 | } |
| 60 | |
| 61 | Status AssignAndLog(int assigned_device, Node* node, |
| 62 | ColocationGraph* colocation_graph, |
| 63 | bool log_device_placement) { |
| 64 | node->set_assigned_device_name_index(assigned_device); |
| 65 | |
| 66 | // Constraint the group of node to the assigned device. |
| 67 | TF_RETURN_IF_ERROR(colocation_graph->LimitToAssignedDevice(*node)); |
| 68 | |
| 69 | LogDeviceAssignment(node, log_device_placement); |
| 70 | return Status::OK(); |
| 71 | } |
| 72 | |
| 73 | } // namespace |
| 74 |
no test coverage detected