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

Function TF_SetAttrInt

tensorflow/c/c_api.cc:839–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839void TF_SetAttrInt(TF_OperationDescription* desc, const char* attr_name,
840 int64_t value) {
841 static_assert(sizeof(int64_t) == sizeof(tensorflow::int64),
842 "64-bit int types should match in size");
843 desc->node_builder.Attr(attr_name, static_cast<tensorflow::int64>(value));
844}
845
846void TF_SetAttrIntList(TF_OperationDescription* desc, const char* attr_name,
847 const int64_t* values, int num_values) {

Callers 2

Split3HelperFunction · 0.85
TEST_FFunction · 0.85

Calls 1

AttrMethod · 0.45

Tested by 2

Split3HelperFunction · 0.68
TEST_FFunction · 0.68