final case class AttributeProto(name: String = "", refAttrName: String = "", docString: String = "", type: AttributeType = ..., f: Float = 0.0f, i: Long = 0L, s: ByteString = ..., t: Option[TensorProto] = None, g: Option[GraphProto] = None, floats: Seq[Float] = _root_.scala.collection.Seq.empty, ints: Seq[Long] = _root_.scala.collection.Seq.empty, strings: Seq[ByteString] = _root_.scala.collection.Seq.empty, tensors: Seq[TensorProto] = _root_.scala.collection.Seq.empty, graphs: Seq[GraphProto] = _root_.scala.collection.Seq.empty) extends GeneratedMessage with Message[AttributeProto] with Updatable[AttributeProto] with Product with Serializable
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.
- 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.
- docString
A human-readable documentation for this attribute. Markdown is allowed.
- 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 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
- f
Exactly ONE of the following fields must be present for this version of the IR float
- i
int
- s
UTF-8 string
- t
tensor value
- g
graph
- floats
list of floats
- ints
list of ints
- strings
list of UTF-8 strings
- tensors
list of tensors
- graphs
list of graph
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- AttributeProto
- Product
- Equals
- Updatable
- Message
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
AttributeProto(name: String = "", refAttrName: String = "", docString: String = "", type: AttributeType = ..., f: Float = 0.0f, i: Long = 0L, s: ByteString = ..., t: Option[TensorProto] = None, g: Option[GraphProto] = None, floats: Seq[Float] = _root_.scala.collection.Seq.empty, ints: Seq[Long] = _root_.scala.collection.Seq.empty, strings: Seq[ByteString] = _root_.scala.collection.Seq.empty, tensors: Seq[TensorProto] = _root_.scala.collection.Seq.empty, graphs: Seq[GraphProto] = _root_.scala.collection.Seq.empty)
- 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.
- docString
A human-readable documentation for this attribute. Markdown is allowed.
- 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 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
- f
Exactly ONE of the following fields must be present for this version of the IR float
- i
int
- s
UTF-8 string
- t
tensor value
- g
graph
- floats
list of floats
- ints
list of ints
- strings
list of UTF-8 strings
- tensors
list of tensors
- graphs
list of graph
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllFloats(__vs: TraversableOnce[Float]): AttributeProto
- def addAllGraphs(__vs: TraversableOnce[GraphProto]): AttributeProto
- def addAllInts(__vs: TraversableOnce[Long]): AttributeProto
- def addAllStrings(__vs: TraversableOnce[ByteString]): AttributeProto
- def addAllTensors(__vs: TraversableOnce[TensorProto]): AttributeProto
- def addFloats(__vs: Float*): AttributeProto
- def addGraphs(__vs: GraphProto*): AttributeProto
- def addInts(__vs: Long*): AttributeProto
- def addStrings(__vs: ByteString*): AttributeProto
- def addTensors(__vs: TensorProto*): AttributeProto
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearFloats: AttributeProto
- def clearG: AttributeProto
- def clearGraphs: AttributeProto
- def clearInts: AttributeProto
- def clearStrings: AttributeProto
- def clearT: AttributeProto
- def clearTensors: AttributeProto
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
companion: AttributeProto.type
- Definition Classes
- AttributeProto → GeneratedMessage
- val docString: String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val f: Float
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val floats: Seq[Float]
- val g: Option[GraphProto]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- AttributeProto → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- AttributeProto → GeneratedMessage
- def getG: GraphProto
- def getT: TensorProto
- val graphs: Seq[GraphProto]
- val i: Long
- val ints: Seq[Long]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mergeFrom(_input__: CodedInputStream): AttributeProto
- Definition Classes
- AttributeProto → Message
- val name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val refAttrName: String
- val s: ByteString
-
final
def
serializedSize: Int
- Definition Classes
- AttributeProto → GeneratedMessage
- val strings: Seq[ByteString]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val t: Option[TensorProto]
- val tensors: Seq[TensorProto]
-
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- AttributeProto → GeneratedMessage
- val type: AttributeType
-
def
update(ms: (Lens[AttributeProto, AttributeProto]) ⇒ Mutation[AttributeProto]*): AttributeProto
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def withDocString(__v: String): AttributeProto
- def withF(__v: Float): AttributeProto
- def withFloats(__v: Seq[Float]): AttributeProto
- def withG(__v: GraphProto): AttributeProto
- def withGraphs(__v: Seq[GraphProto]): AttributeProto
- def withI(__v: Long): AttributeProto
- def withInts(__v: Seq[Long]): AttributeProto
- def withName(__v: String): AttributeProto
- def withRefAttrName(__v: String): AttributeProto
- def withS(__v: ByteString): AttributeProto
- def withStrings(__v: Seq[ByteString]): AttributeProto
- def withT(__v: TensorProto): AttributeProto
- def withTensors(__v: Seq[TensorProto]): AttributeProto
- def withType(__v: AttributeType): AttributeProto
-
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- AttributeProto → GeneratedMessage
-
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
Deprecated Value Members
-
def
getAllFields: Map[FieldDescriptor, Any]
- Definition Classes
- GeneratedMessage
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use toPMessage
-
def
getField(field: FieldDescriptor): Any
- Definition Classes
- GeneratedMessage
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue