| 258 | } |
| 259 | |
| 260 | string get_node_by_tensor(string tensor_name) { |
| 261 | auto position = tensor_name.find(":"); |
| 262 | if (position != string::npos) |
| 263 | tensor_name.erase(tensor_name.begin() + position, tensor_name.end()); |
| 264 | if (tensor_name[0] == '^') tensor_name.erase(tensor_name.begin()); |
| 265 | |
| 266 | return tensor_name; |
| 267 | } |
| 268 | } // namespace dicefusion |
| 269 | |
| 270 | Status DiceFusion::Optimize(Cluster* cluster, const GrapplerItem& item, |