AttrMetadata Fields |
The AttrMetadata type exposes the following members.
Name | Description | |
---|---|---|
![]() | IsList |
True if the attribute value is a list, false otherwise.
|
![]() | ListSize |
Length of the list if is_list is true. Undefined otherwise.
|
![]() | TotalSize |
Total size the attribute value.
The units of total_size depend on is_list and type.
(1) If type == TF_ATTR_STRING and is_list == 0
then total_size is the byte size of the string
valued attribute.
(2) If type == TF_ATTR_STRING and is_list == 1
then total_size is the cumulative byte size
of all the strings in the list.
(3) If type == TF_ATTR_SHAPE and is_list == 0
then total_size is the number of dimensions
of the shape valued attribute, or -1
if its rank is unknown.
(4) If type == TF_ATTR_SHAPE and is_list == 1
then total_size is the cumulative number
of dimensions of all shapes in the list.
(5) Otherwise, total_size is undefined.
|
![]() | Type |
Type of elements of the list if is_list != 0.
Type of the single value stored in the attribute if is_list == 0.
|