Attributes
A named attribute containing either singular float, integer, string, graph, and tensor values, or repeated float, integer, string, graph, and tensor values. An AttributeProto MUST contain the name field, and only one of the following content fields, effectively enforcing a C/C++ union equivalent.
Value parameters
- docString
-
A human-readable documentation for this attribute. Markdown is allowed.
- f
-
Exactly ONE of the following fields must be present for this version of the IR float
- floats
-
list of floats
- g
-
graph
- graphs
-
list of graph
- i
-
int
- ints
-
list of ints
- name
-
The name field MUST be present for this version of the IR. namespace Attribute
- refAttrName
-
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function. In this case, this AttributeProto does not contain data, and it's a reference of attribute in parent scope. NOTE: This should ONLY be used in function (sub-graph). It's invalid to be used in main graph.
- s
-
UTF-8 string
- sparseTensor
-
sparse tensor value
- sparseTensors
-
list of sparse tensors
- strings
-
list of UTF-8 strings
- t
-
tensor value
- tensors
-
list of tensors
- type
-
The type field MUST be present for this version of the IR. For 0.0.1 versions of the IR, this field was not defined, and implementations needed to use has_field heuristics to determine which value field was in use. For IR_VERSION 0.0.2 or later, this field MUST be set and match the f|i|s|t|... field in use. This change was made to accommodate proto3 implementations. discriminator that indicates which field below is in use
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Updatable[AttributeProto]trait GeneratedMessagetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any