The name field MUST be present for this version of the IR. namespace Attribute
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.
A human-readable documentation for this attribute. Markdown is allowed.
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 hueristics 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 accomodate proto3 implementations. discriminator that indicates which field below is in use
Exactly ONE of the following fields must be present for this version of the IR float
int
UTF-8 string
tensor value
graph
list of floats
list of ints
list of UTF-8 strings
list of tensors
list of graph
A human-readable documentation for this attribute.
A human-readable documentation for this attribute. Markdown is allowed.
Exactly ONE of the following fields must be present for this version of the IR float
list of floats
graph
list of graph
int
list of ints
The name field MUST be present for this version of the IR.
The name field MUST be present for this version of the IR. namespace Attribute
if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.
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.
UTF-8 string
list of UTF-8 strings
tensor value
list of tensors
The type field MUST be present for this version of the IR.
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 hueristics 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 accomodate proto3 implementations. discriminator that indicates which field below is in use
(Since version 0.6.0) Use toPMessage
(Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue
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.
The name field MUST be present for this version of the IR. namespace Attribute
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.
A human-readable documentation for this attribute. Markdown is allowed.
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 hueristics 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 accomodate proto3 implementations. discriminator that indicates which field below is in use
Exactly ONE of the following fields must be present for this version of the IR float
int
UTF-8 string
tensor value
graph
list of floats
list of ints
list of UTF-8 strings
list of tensors
list of graph