final case class AttributeProto(name: Option[String] = _root_.scala.None, refAttrName: Option[String] = _root_.scala.None, docString: Option[String] = _root_.scala.None, type: Option[AttributeType] = _root_.scala.None, f: Option[Float] = _root_.scala.None, i: Option[Long] = _root_.scala.None, s: Option[ByteString] = _root_.scala.None, t: Option[TensorProto] = _root_.scala.None, g: Option[GraphProto] = _root_.scala.None, sparseTensor: Option[SparseTensorProto] = _root_.scala.None, floats: Seq[Float] = _root_.scala.Seq.empty, ints: Seq[Long] = _root_.scala.Seq.empty, strings: Seq[ByteString] = _root_.scala.Seq.empty, tensors: Seq[TensorProto] = _root_.scala.Seq.empty, graphs: Seq[GraphProto] = _root_.scala.Seq.empty, sparseTensors: Seq[SparseTensorProto] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage 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 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
- 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
- sparseTensor
sparse tensor value
- floats
list of floats
- ints
list of ints
- strings
list of UTF-8 strings
- tensors
list of tensors
- graphs
list of graph
- sparseTensors
list of sparse tensors
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- AttributeProto
- Updatable
- GeneratedMessage
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AttributeProto(name: Option[String] = _root_.scala.None, refAttrName: Option[String] = _root_.scala.None, docString: Option[String] = _root_.scala.None, type: Option[AttributeType] = _root_.scala.None, f: Option[Float] = _root_.scala.None, i: Option[Long] = _root_.scala.None, s: Option[ByteString] = _root_.scala.None, t: Option[TensorProto] = _root_.scala.None, g: Option[GraphProto] = _root_.scala.None, sparseTensor: Option[SparseTensorProto] = _root_.scala.None, floats: Seq[Float] = _root_.scala.Seq.empty, ints: Seq[Long] = _root_.scala.Seq.empty, strings: Seq[ByteString] = _root_.scala.Seq.empty, tensors: Seq[TensorProto] = _root_.scala.Seq.empty, graphs: Seq[GraphProto] = _root_.scala.Seq.empty, sparseTensors: Seq[SparseTensorProto] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.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 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
- 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
- sparseTensor
sparse tensor value
- floats
list of floats
- ints
list of ints
- strings
list of UTF-8 strings
- tensors
list of tensors
- graphs
list of graph
- sparseTensors
list of sparse tensors
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: Iterable[Float]): AttributeProto
- def addAllGraphs(__vs: Iterable[GraphProto]): AttributeProto
- def addAllInts(__vs: Iterable[Long]): AttributeProto
- def addAllSparseTensors(__vs: Iterable[SparseTensorProto]): AttributeProto
- def addAllStrings(__vs: Iterable[ByteString]): AttributeProto
- def addAllTensors(__vs: Iterable[TensorProto]): AttributeProto
- def addFloats(__vs: Float*): AttributeProto
- def addGraphs(__vs: GraphProto*): AttributeProto
- def addInts(__vs: Long*): AttributeProto
- def addSparseTensors(__vs: SparseTensorProto*): AttributeProto
- def addStrings(__vs: ByteString*): AttributeProto
- def addTensors(__vs: TensorProto*): AttributeProto
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearDocString: AttributeProto
- def clearF: AttributeProto
- def clearFloats: AttributeProto
- def clearG: AttributeProto
- def clearGraphs: AttributeProto
- def clearI: AttributeProto
- def clearInts: AttributeProto
- def clearName: AttributeProto
- def clearRefAttrName: AttributeProto
- def clearS: AttributeProto
- def clearSparseTensor: AttributeProto
- def clearSparseTensors: AttributeProto
- def clearStrings: AttributeProto
- def clearT: AttributeProto
- def clearTensors: AttributeProto
- def clearType: AttributeProto
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def companion: AttributeProto.type
- Definition Classes
- AttributeProto → GeneratedMessage
- def discardUnknownFields: AttributeProto
- val docString: Option[String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val f: Option[Float]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val floats: Seq[Float]
- val g: Option[GraphProto]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getDocString: String
- def getF: Float
- def getField(__field: FieldDescriptor): PValue
- Definition Classes
- AttributeProto → GeneratedMessage
- def getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- AttributeProto → GeneratedMessage
- def getG: GraphProto
- def getI: Long
- def getName: String
- def getRefAttrName: String
- def getS: ByteString
- def getSparseTensor: SparseTensorProto
- def getT: TensorProto
- def getType: AttributeType
- val graphs: Seq[GraphProto]
- val i: Option[Long]
- val ints: Seq[Long]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: Option[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()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val refAttrName: Option[String]
- val s: Option[ByteString]
- def serializedSize: Int
- Definition Classes
- AttributeProto → GeneratedMessage
- val sparseTensor: Option[SparseTensorProto]
- val sparseTensors: Seq[SparseTensorProto]
- val strings: Seq[ByteString]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val t: Option[TensorProto]
- val tensors: Seq[TensorProto]
- final def toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
- final def toByteString: ByteString
- Definition Classes
- GeneratedMessage
- final def toPMessage: PMessage
- Definition Classes
- GeneratedMessage
- def toProtoString: String
- Definition Classes
- AttributeProto → GeneratedMessage
- val type: Option[AttributeType]
- val unknownFields: UnknownFieldSet
- def update(ms: (Lens[AttributeProto, AttributeProto]) => Mutation[AttributeProto]*): AttributeProto
- Definition Classes
- Updatable
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- 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 withSparseTensor(__v: SparseTensorProto): AttributeProto
- def withSparseTensors(__v: Seq[SparseTensorProto]): AttributeProto
- def withStrings(__v: Seq[ByteString]): AttributeProto
- def withT(__v: TensorProto): AttributeProto
- def withTensors(__v: Seq[TensorProto]): AttributeProto
- def withType(__v: AttributeType): AttributeProto
- def withUnknownFields(__v: UnknownFieldSet): AttributeProto
- final def writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
- def writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- AttributeProto → GeneratedMessage
- final def writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage