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

Method InitFromString

tensorflow/core/framework/function.cc:1631–1637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1629}
1630
1631void FunctionDefHelper::AttrValueWrapper::InitFromString(StringPiece val) {
1632 if (val.size() >= 2 && val[0] == '$') {
1633 proto.set_placeholder(val.data() + 1, val.size() - 1);
1634 } else {
1635 SetAttrValue(val, &proto);
1636 }
1637}
1638
1639FunctionDefHelper::AttrValueWrapper FunctionDefHelper::FunctionRef(
1640 const string& name,

Callers

nothing calls this directly

Calls 3

SetAttrValueFunction · 0.70
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected