aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/c/c_api.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-01-17 08:11:09 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-17 08:15:21 -0800
commitafbf1e3ab3cd1ba0ebec53483c9d3a05b9c51554 (patch)
treef040a6e7b7c7aeec9fb46e78855900733058cccb /tensorflow/c/c_api.h
parent3252d0d41c15c1b26376c9c86c537aa275a1bb65 (diff)
Rename the newly introduced TF_SetAttrFunc function to make it clear that it is
setting the attribute to a function name. This permits future patches to add things like TF_SetAttrFuncAttrList if necessary later. PiperOrigin-RevId: 182216098
Diffstat (limited to 'tensorflow/c/c_api.h')
-rw-r--r--tensorflow/c/c_api.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/c/c_api.h b/tensorflow/c/c_api.h
index 7a3bb47708..17e20e1b70 100644
--- a/tensorflow/c/c_api.h
+++ b/tensorflow/c/c_api.h
@@ -513,9 +513,9 @@ TF_CAPI_EXPORT extern void TF_SetAttrTypeList(TF_OperationDescription* desc,
int num_values);
// Set a 'func' attribute to the specified name.
// `value` must point to a string of length `length` bytes.
-TF_CAPI_EXPORT extern void TF_SetAttrFunc(TF_OperationDescription* desc,
- const char* attr_name,
- const char* value, size_t length);
+TF_CAPI_EXPORT extern void TF_SetAttrFuncName(TF_OperationDescription* desc,
+ const char* attr_name,
+ const char* value, size_t length);
// Set `num_dims` to -1 to represent "unknown rank". Otherwise,
// `dims` points to an array of length `num_dims`. `dims[i]` must be