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

Function get_node_by_tensor

tensorflow/core/grappler/optimizers/dice_fusion.cc:260–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260string 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
270Status DiceFusion::Optimize(Cluster* cluster, const GrapplerItem& item,

Callers 1

OptimizeMethod · 0.85

Calls 4

findMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected