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]) @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. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  40. val floats: Seq[Float]
  41. val g: Option[GraphProto]
  42. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  43. def getDocString: String
  44. def getF: Float
  45. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    AttributeProto → GeneratedMessage
  46. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    AttributeProto → GeneratedMessage
  47. def getG: GraphProto
  48. def getI: Long
  49. def getName: String
  50. def getRefAttrName: String
  51. def getS: ByteString
  52. def getSparseTensor: SparseTensorProto
  53. def getT: TensorProto
  54. def getType: AttributeType
  55. val graphs: Seq[GraphProto]
  56. val i: Option[Long]
  57. val ints: Seq[Long]
  58. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  59. val name: Option[String]
  60. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  61. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  62. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  63. def productElementNames: Iterator[String]
    Definition Classes
    Product
  64. val refAttrName: Option[String]
  65. val s: Option[ByteString]
  66. def serializedSize: Int
    Definition Classes
    AttributeProto → GeneratedMessage
  67. val sparseTensor: Option[SparseTensorProto]
  68. val sparseTensors: Seq[SparseTensorProto]
  69. val strings: Seq[ByteString]
  70. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  71. val t: Option[TensorProto]
  72. val tensors: Seq[TensorProto]
  73. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  74. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  75. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  76. def toProtoString: String
    Definition Classes
    AttributeProto → GeneratedMessage
  77. val type: Option[AttributeType]
  78. val unknownFields: UnknownFieldSet
  79. def update(ms: (Lens[AttributeProto, AttributeProto]) => Mutation[AttributeProto]*): AttributeProto
    Definition Classes
    Updatable
  80. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  81. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  82. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  83. def withDocString(__v: String): AttributeProto
  84. def withF(__v: Float): AttributeProto
  85. def withFloats(__v: Seq[Float]): AttributeProto
  86. def withG(__v: GraphProto): AttributeProto
  87. def withGraphs(__v: Seq[GraphProto]): AttributeProto
  88. def withI(__v: Long): AttributeProto
  89. def withInts(__v: Seq[Long]): AttributeProto
  90. def withName(__v: String): AttributeProto
  91. def withRefAttrName(__v: String): AttributeProto
  92. def withS(__v: ByteString): AttributeProto
  93. def withSparseTensor(__v: SparseTensorProto): AttributeProto
  94. def withSparseTensors(__v: Seq[SparseTensorProto]): AttributeProto
  95. def withStrings(__v: Seq[ByteString]): AttributeProto
  96. def withT(__v: TensorProto): AttributeProto
  97. def withTensors(__v: Seq[TensorProto]): AttributeProto
  98. def withType(__v: AttributeType): AttributeProto
  99. def withUnknownFields(__v: UnknownFieldSet): AttributeProto
  100. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  101. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    AttributeProto → GeneratedMessage
  102. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Updatable[AttributeProto]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped