@@ -537,7 +537,7 @@ extern int TF_OperationGetControlOutputs(TF_Operation* oper,
537537 TF_Operation * * control_outputs ,
538538 int max_control_outputs );
539539
540- // TF_Attr_Type describes the type of the value of an attribute on an operation.
540+ // TF_AttrType describes the type of the value of an attribute on an operation.
541541typedef enum {
542542 TF_ATTR_STRING = 0 ,
543543 TF_ATTR_INT = 1 ,
@@ -548,9 +548,9 @@ typedef enum {
548548 TF_ATTR_TENSOR = 6 ,
549549 TF_ATTR_PLACEHOLDER = 7 ,
550550 TF_ATTR_FUNC = 8 ,
551- } TF_Attr_Type ;
551+ } TF_AttrType ;
552552
553- // TF_Attr_Metadata describes the value of an attribute on an operation.
553+ // TF_AttrMetadata describes the value of an attribute on an operation.
554554typedef struct {
555555 // A boolean: 1 if the attribute value is a list, 0 otherwise.
556556 unsigned char is_list ;
@@ -560,7 +560,7 @@ typedef struct {
560560
561561 // Type of elements of the list if is_list != 0.
562562 // Type of the single value stored in the attribute if is_list == 0.
563- TF_Attr_Type type ;
563+ TF_AttrType type ;
564564
565565 // Total size the attribute value.
566566 // The units of total_size depend on is_list and type.
@@ -579,16 +579,16 @@ typedef struct {
579579 // of dimensions of all shapes in the list.
580580 // (5) Otherwise, total_size is undefined.
581581 int64_t total_size ;
582- } TF_Attr_Metadata ;
582+ } TF_AttrMetadata ;
583583
584584// Returns metadata about the value of the attribute `attr_name` of `oper`.
585- TF_Attr_Metadata TF_OperationGetAttrMetadata (TF_Operation * oper ,
586- const char * attr_name ,
587- TF_Status * status );
585+ TF_AttrMetadata TF_OperationGetAttrMetadata (TF_Operation * oper ,
586+ const char * attr_name ,
587+ TF_Status * status );
588588
589589// Fills in `value` with the value of the attribute `attr_name`. `value` must
590590// point to an array of length at least `max_length` (ideally set to
591- // TF_Attr_Metadata .total_size from TF_OperationGetAttrMetadata(oper,
591+ // TF_AttrMetadata .total_size from TF_OperationGetAttrMetadata(oper,
592592// attr_name)).
593593extern void TF_OperationGetAttrString (TF_Operation * oper , const char * attr_name ,
594594 void * value , int max_length ,
@@ -600,8 +600,8 @@ extern void TF_OperationGetAttrString(TF_Operation* oper, const char* attr_name,
600600//
601601// The elements of values will point to addresses in `storage` which must be at
602602// least `storage_size` bytes large. Ideally, max_values would be set to
603- // TF_Attr_Metadata .list_size and `storage` would be at least
604- // TF_Attr_Metadata .total_size, obtained from TF_OperationGetAttrMetadata(oper,
603+ // TF_AttrMetadata .list_size and `storage` would be at least
604+ // TF_AttrMetadata .total_size, obtained from TF_OperationGetAttrMetadata(oper,
605605// attr_name).
606606//
607607// Fails if storage_size is too small to hold the requested number of strings.
@@ -616,7 +616,7 @@ extern void TF_OperationGetAttrInt(TF_Operation* oper, const char* attr_name,
616616
617617// Fills in `values` with the value of the attribute `attr_name` of `oper`.
618618// `values` must point to an array of length at least `max_values` (ideally set
619- // TF_Attr_Metadata .list_size from TF_OperationGetAttrMetadata(oper,
619+ // TF_AttrMetadata .list_size from TF_OperationGetAttrMetadata(oper,
620620// attr_name)).
621621extern void TF_OperationGetAttrIntList (TF_Operation * oper ,
622622 const char * attr_name , int64_t * values ,
@@ -627,7 +627,7 @@ extern void TF_OperationGetAttrFloat(TF_Operation* oper, const char* attr_name,
627627
628628// Fills in `values` with the value of the attribute `attr_name` of `oper`.
629629// `values` must point to an array of length at least `max_values` (ideally set
630- // to TF_Attr_Metadata .list_size from TF_OperationGetAttrMetadata(oper,
630+ // to TF_AttrMetadata .list_size from TF_OperationGetAttrMetadata(oper,
631631// attr_name)).
632632extern void TF_OperationGetAttrFloatList (TF_Operation * oper ,
633633 const char * attr_name , float * values ,
@@ -638,7 +638,7 @@ extern void TF_OperationGetAttrBool(TF_Operation* oper, const char* attr_name,
638638
639639// Fills in `values` with the value of the attribute `attr_name` of `oper`.
640640// `values` must point to an array of length at least `max_values` (ideally set
641- // to TF_Attr_Metadata .list_size from TF_OperationGetAttrMetadata(oper,
641+ // to TF_AttrMetadata .list_size from TF_OperationGetAttrMetadata(oper,
642642// attr_name)).
643643extern void TF_OperationGetAttrBoolList (TF_Operation * oper ,
644644 const char * attr_name ,
@@ -650,7 +650,7 @@ extern void TF_OperationGetAttrType(TF_Operation* oper, const char* attr_name,
650650
651651// Fills in `values` with the value of the attribute `attr_name` of `oper`.
652652// `values` must point to an array of length at least `max_values` (ideally set
653- // to TF_Attr_Metadata .list_size from TF_OperationGetAttrMetadata(oper,
653+ // to TF_AttrMetadata .list_size from TF_OperationGetAttrMetadata(oper,
654654// attr_name)).
655655extern void TF_OperationGetAttrTypeList (TF_Operation * oper ,
656656 const char * attr_name ,
@@ -672,8 +672,8 @@ extern void TF_OperationGetAttrShape(TF_Operation* oper, const char* attr_name,
672672//
673673// The elements of `dims` will point to addresses in `storage` which must be
674674// large enough to hold at least `storage_size` int64_ts. Ideally, `num_shapes`
675- // would be set to TF_Attr_Metadata .list_size and `storage_size` would be set to
676- // TF_Attr_Metadata .total_size from TF_OperationGetAttrMetadata(oper,
675+ // would be set to TF_AttrMetadata .list_size and `storage_size` would be set to
676+ // TF_AttrMetadata .total_size from TF_OperationGetAttrMetadata(oper,
677677// attr_name).
678678//
679679// Fails if storage_size is insufficient to hold the requested shapes.
@@ -692,7 +692,7 @@ extern void TF_OperationGetAttrTensorShapeProto(TF_Operation* oper,
692692
693693// Fills in `values` with binary-serialized TensorShapeProto values of the
694694// attribute `attr_name` of `oper`. `values` must point to an array of length at
695- // least `num_values` (ideally set to TF_Attr_Metadata .list_size from
695+ // least `num_values` (ideally set to TF_AttrMetadata .list_size from
696696// TF_OperationGetAttrMetadata(oper, attr_name)).
697697extern void TF_OperationGetAttrTensorShapeProtoList (TF_Operation * oper ,
698698 const char * attr_name ,
@@ -709,7 +709,7 @@ extern void TF_OperationGetAttrTensor(TF_Operation* oper, const char* attr_name,
709709
710710// Fills in `values` with the TF_Tensor values of the attribute `attr_name` of
711711// `oper`. `values` must point to an array of TF_Tensor* of length at least
712- // `max_values` (ideally set to TF_Attr_Metadata .list_size from
712+ // `max_values` (ideally set to TF_AttrMetadata .list_size from
713713// TF_OperationGetAttrMetadata(oper, attr_name)).
714714//
715715// The caller takes ownership of all the non-null TF_Tensor* entries in `values`
0 commit comments