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

Method GetFeature2IdAttr

serving/processor/framework/graph_optimizer.cc:1460–1472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1458}
1459
1460Status SavedModelOptimizer::GetFeature2IdAttr(
1461 const std::string& name,
1462 AttrValue* attr_value) {
1463 if (feature_names_to_ids.find(name) ==
1464 feature_names_to_ids.end()) {
1465 return tensorflow::errors::Internal(
1466 "Not found a id of the featue. ", name);
1467 }
1468
1469 SetAttrValue(feature_names_to_ids[name],
1470 attr_value);
1471 return Status::OK();
1472}
1473
1474Status SavedModelOptimizer::ConvertKVOps() {
1475

Callers

nothing calls this directly

Calls 4

InternalFunction · 0.85
SetAttrValueFunction · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected