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

Function TF_SetAttrTensor

tensorflow/c/c_api.cc:982–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

980}
981
982void TF_SetAttrTensor(TF_OperationDescription* desc, const char* attr_name,
983 TF_Tensor* value, TF_Status* status) {
984 Tensor t;
985 status->status = TF_TensorToTensor(value, &t);
986 if (TF_GetCode(status) == TF_OK) desc->node_builder.Attr(attr_name, t);
987}
988
989void TF_SetAttrTensorList(TF_OperationDescription* desc, const char* attr_name,
990 TF_Tensor* const* values, int num_values,

Callers 4

ConstHelperFunction · 0.85
FloatConst2x2Method · 0.85
TEST_FFunction · 0.85

Calls 3

TF_TensorToTensorFunction · 0.85
TF_GetCodeFunction · 0.85
AttrMethod · 0.45

Tested by 3

ConstHelperFunction · 0.68
FloatConst2x2Method · 0.68
TEST_FFunction · 0.68