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

Function AssignAndLog

tensorflow/core/common_runtime/placer.cc:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61Status 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

Callers 1

RunMethod · 0.85

Calls 3

LogDeviceAssignmentFunction · 0.85
LimitToAssignedDeviceMethod · 0.80

Tested by

no test coverage detected