diff options
author | 2017-01-19 10:40:03 -0800 | |
---|---|---|
committer | 2017-01-19 10:46:51 -0800 | |
commit | cce954bc6c225350e7505bf10c48f755d7c4d790 (patch) | |
tree | 0e9bbe3571682b150df68688100431682e4dfc00 /tensorflow/c/c_api.h | |
parent | 6149fc54f4567cb00619fe085a691e3513343faf (diff) |
Ensure all structs in the C API are named (in addition to typedef'd).
This makes it possible to forward declare the structs.
Change: 144979752
Diffstat (limited to 'tensorflow/c/c_api.h')
-rw-r--r-- | tensorflow/c/c_api.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/c/c_api.h b/tensorflow/c/c_api.h index e625d656ad..2e16caa92e 100644 --- a/tensorflow/c/c_api.h +++ b/tensorflow/c/c_api.h @@ -160,7 +160,7 @@ extern const char* TF_Message(const TF_Status* s); // By default, TF_Buffer itself does not do any memory management of the // pointed-to block. If need be, users of this struct should specify how to // deallocate the block by setting the `data_deallocator` function pointer. -typedef struct { +typedef struct TF_Buffer { const void* data; size_t length; void (*data_deallocator)(void* data, size_t length); @@ -594,7 +594,7 @@ typedef enum { } TF_AttrType; // TF_AttrMetadata describes the value of an attribute on an operation. -typedef struct { +typedef struct TF_AttrMetadata { // A boolean: 1 if the attribute value is a list, 0 otherwise. unsigned char is_list; |