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

Function SetAttrValue

tensorflow/core/framework/function_test.cc:1285–1289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1283
1284template <typename T>
1285void SetAttrValue(FunctionDef* fdef, const string& attr, const T& value) {
1286 AttrValue attr_value;
1287 SetAttrValue(value, &attr_value);
1288 fdef->mutable_attr()->insert({attr, attr_value});
1289}
1290
1291TEST(FunctionLibraryDefinitionTest, GetAttr_FuncWithAttr) {
1292 FunctionDefLibrary proto;

Callers 15

BuildAttrValueMethod · 0.70
TESTFunction · 0.70
VFunction · 0.70
TESTFunction · 0.70
AddAttrFunction · 0.70
InitFromStringMethod · 0.70
AttrValueWrapperMethod · 0.70
CreateRestoreOpFunction · 0.50
GetFeature2IdAttrMethod · 0.50
ConvertKVOpsMethod · 0.50
CreateIncrRestoreOpMethod · 0.50
TESTFunction · 0.50

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected