| 160 | } |
| 161 | |
| 162 | string TensorIdToString(const TensorId& tensor_id) { |
| 163 | return tensor_id.index() == 0 ? string(tensor_id.node()) |
| 164 | : tensor_id.ToString(); |
| 165 | } |
| 166 | |
| 167 | string SafeTensorIdToString(const SafeTensorId& tensor_id) { |
| 168 | return tensor_id.index() == 0 ? tensor_id.node() : tensor_id.ToString(); |