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()
Linear Supertypes
Updatable[AttributeProto], GeneratedMessage, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AttributeProto
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllFloats(__vs: Iterable[Float]): AttributeProto
  5. def addAllGraphs(__vs: Iterable[GraphProto]): AttributeProto
  6. def addAllInts(__vs: Iterable[Long]): AttributeProto
  7. def addAllSparseTensors(__vs: Iterable[SparseTensorProto]): AttributeProto
  8. def addAllStrings(__vs: Iterable[ByteString]): AttributeProto
  9. def addAllTensors(__vs: Iterable[TensorProto]): AttributeProto
  10. def addFloats(__vs: Float*): AttributeProto
  11. def addGraphs(__vs: GraphProto*): AttributeProto
  12. def addInts(__vs: Long*): AttributeProto
  13. def addSparseTensors(__vs: SparseTensorProto*): AttributeProto
  14. def addStrings(__vs: ByteString*): AttributeProto
  15. def addTensors(__vs: TensorProto*): AttributeProto
  16. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  17. def clearDocString: AttributeProto
  18. def clearF: AttributeProto
  19. def clearFloats: AttributeProto
  20. def clearG: AttributeProto
  21. def clearGraphs: AttributeProto
  22. def clearI: AttributeProto
  23. def clearInts: AttributeProto
  24. def clearName: AttributeProto
  25. def clearRefAttrName: AttributeProto
  26. def clearS: AttributeProto
  27. def clearSparseTensor: AttributeProto
  28. def clearSparseTensors: AttributeProto
  29. def clearStrings: AttributeProto
  30. def clearT: AttributeProto
  31. def clearTensors: AttributeProto
  32. def clearType: AttributeProto
  33. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  34. def companion: AttributeProto.type
    Definition Classes
    AttributeProto → GeneratedMessage
  35. def discardUnknownFields: AttributeProto
  36. val docString: Option[String]
  37. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. val f: Option[Float]
  39. val floats: Seq[Float]
  40. val g: Option[GraphProto]
  41. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  42. def getDocString: String
  43. def getF: Float
  44. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    AttributeProto → GeneratedMessage
  45. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    AttributeProto → GeneratedMessage
  46. def getG: GraphProto
  47. def getI: Long
  48. def getName: String
  49. def getRefAttrName: String
  50. def getS: ByteString
  51. def getSparseTensor: SparseTensorProto
  52. def getT: TensorProto
  53. def getType: AttributeType
  54. val graphs: Seq[GraphProto]
  55. val i: Option[Long]
  56. val ints: Seq[Long]
  57. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  58. val name: Option[String]
  59. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  60. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  61. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  62. def productElementNames: Iterator[String]
    Definition Classes
    Product
  63. val refAttrName: Option[String]
  64. val s: Option[ByteString]
  65. def serializedSize: Int
    Definition Classes
    AttributeProto → GeneratedMessage
  66. val sparseTensor: Option[SparseTensorProto]
  67. val sparseTensors: Seq[SparseTensorProto]
  68. val strings: Seq[ByteString]
  69. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  70. val t: Option[TensorProto]
  71. val tensors: Seq[TensorProto]
  72. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  73. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  74. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  75. def toProtoString: String
    Definition Classes
    AttributeProto → GeneratedMessage
  76. val type: Option[AttributeType]
  77. val unknownFields: UnknownFieldSet
  78. def update(ms: (Lens[AttributeProto, AttributeProto]) => Mutation[AttributeProto]*): AttributeProto
    Definition Classes
    Updatable
  79. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  80. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  81. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  82. def withDocString(__v: String): AttributeProto
  83. def withF(__v: Float): AttributeProto
  84. def withFloats(__v: Seq[Float]): AttributeProto
  85. def withG(__v: GraphProto): AttributeProto
  86. def withGraphs(__v: Seq[GraphProto]): AttributeProto
  87. def withI(__v: Long): AttributeProto
  88. def withInts(__v: Seq[Long]): AttributeProto
  89. def withName(__v: String): AttributeProto
  90. def withRefAttrName(__v: String): AttributeProto
  91. def withS(__v: ByteString): AttributeProto
  92. def withSparseTensor(__v: SparseTensorProto): AttributeProto
  93. def withSparseTensors(__v: Seq[SparseTensorProto]): AttributeProto
  94. def withStrings(__v: Seq[ByteString]): AttributeProto
  95. def withT(__v: TensorProto): AttributeProto
  96. def withTensors(__v: Seq[TensorProto]): AttributeProto
  97. def withType(__v: AttributeType): AttributeProto
  98. def withUnknownFields(__v: UnknownFieldSet): AttributeProto
  99. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  100. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    AttributeProto → GeneratedMessage
  101. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Updatable[AttributeProto]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped