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

Function TF_SetAttrString

tensorflow/c/c_api.cc:814–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812}
813
814void TF_SetAttrString(TF_OperationDescription* desc, const char* attr_name,
815 const void* value, size_t length) {
816 tensorflow::StringPiece s(static_cast<const char*>(value), length);
817 desc->node_builder.Attr(attr_name, s);
818}
819
820void TF_SetAttrStringList(TF_OperationDescription* desc, const char* attr_name,
821 const void* const* values, const size_t* lengths,

Callers 3

NodeWithAttrHelperFunction · 0.85
TEST_FFunction · 0.85

Calls 1

AttrMethod · 0.45

Tested by 2

NodeWithAttrHelperFunction · 0.68
TEST_FFunction · 0.68