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, tp: Option[TypeProto] = _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, typeProtos: Seq[TypeProto] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = ...) 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

tp

Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph type proto

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

typeProtos

list of type protos

Annotations
@SerialVersionUID()
Linear Supertypes
Updatable[AttributeProto], GeneratedMessage, Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AttributeProto
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Serializable
  6. Product
  7. Equals
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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, tp: Option[TypeProto] = _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, typeProtos: Seq[TypeProto] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = ...)

    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

    tp

    Do not use field below, it's deprecated. optional ValueProto v = 12; // value - subsumes everything but graph type proto

    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

    typeProtos

    list of type protos

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

Inherited from Updatable[AttributeProto]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped