Class/Object

onnx.onnx

AttributeProto

Related Docs: object AttributeProto | package onnx

Permalink

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

    Permalink

    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

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addAllFloats(__vs: Iterable[Float]): AttributeProto

    Permalink
  5. def addAllGraphs(__vs: Iterable[GraphProto]): AttributeProto

    Permalink
  6. def addAllInts(__vs: Iterable[Long]): AttributeProto

    Permalink
  7. def addAllStrings(__vs: Iterable[ByteString]): AttributeProto

    Permalink
  8. def addAllTensors(__vs: Iterable[TensorProto]): AttributeProto

    Permalink
  9. def addFloats(__vs: Float*): AttributeProto

    Permalink
  10. def addGraphs(__vs: GraphProto*): AttributeProto

    Permalink
  11. def addInts(__vs: Long*): AttributeProto

    Permalink
  12. def addStrings(__vs: ByteString*): AttributeProto

    Permalink
  13. def addTensors(__vs: TensorProto*): AttributeProto

    Permalink
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def clearDocString: AttributeProto

    Permalink
  16. def clearF: AttributeProto

    Permalink
  17. def clearFloats: AttributeProto

    Permalink
  18. def clearG: AttributeProto

    Permalink
  19. def clearGraphs: AttributeProto

    Permalink
  20. def clearI: AttributeProto

    Permalink
  21. def clearInts: AttributeProto

    Permalink
  22. def clearName: AttributeProto

    Permalink
  23. def clearRefAttrName: AttributeProto

    Permalink
  24. def clearS: AttributeProto

    Permalink
  25. def clearStrings: AttributeProto

    Permalink
  26. def clearT: AttributeProto

    Permalink
  27. def clearTensors: AttributeProto

    Permalink
  28. def clearType: AttributeProto

    Permalink
  29. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def companion: AttributeProto.type

    Permalink
    Definition Classes
    AttributeProto → GeneratedMessage
  31. val docString: Option[String]

    Permalink

    A human-readable documentation for this attribute.

    A human-readable documentation for this attribute. Markdown is allowed.

  32. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. val f: Option[Float]

    Permalink

    Exactly ONE of the following fields must be present for this version of the IR float

  34. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. val floats: Seq[Float]

    Permalink

    list of floats

  36. val g: Option[GraphProto]

    Permalink

    graph

  37. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  38. def getDocString: String

    Permalink
  39. def getF: Float

    Permalink
  40. def getField(__field: FieldDescriptor): PValue

    Permalink
    Definition Classes
    AttributeProto → GeneratedMessage
  41. def getFieldByNumber(__fieldNumber: Int): Any

    Permalink
    Definition Classes
    AttributeProto → GeneratedMessage
  42. def getG: GraphProto

    Permalink
  43. def getI: Long

    Permalink
  44. def getName: String

    Permalink
  45. def getRefAttrName: String

    Permalink
  46. def getS: ByteString

    Permalink
  47. def getT: TensorProto

    Permalink
  48. def getType: AttributeType

    Permalink
  49. val graphs: Seq[GraphProto]

    Permalink

    list of graph

  50. val i: Option[Long]

    Permalink

    int

  51. val ints: Seq[Long]

    Permalink

    list of ints

  52. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  53. def mergeFrom(_input__: CodedInputStream): AttributeProto

    Permalink
    Definition Classes
    AttributeProto → Message
  54. val name: Option[String]

    Permalink

    The name field MUST be present for this version of the IR.

    The name field MUST be present for this version of the IR. namespace Attribute

  55. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  56. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  57. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  58. val refAttrName: Option[String]

    Permalink

    if ref_attr_name is not empty, ref_attr_name is the attribute name in parent function.

    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.

  59. val s: Option[ByteString]

    Permalink

    UTF-8 string

  60. final def serializedSize: Int

    Permalink
    Definition Classes
    AttributeProto → GeneratedMessage
  61. val strings: Seq[ByteString]

    Permalink

    list of UTF-8 strings

  62. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  63. val t: Option[TensorProto]

    Permalink

    tensor value

  64. val tensors: Seq[TensorProto]

    Permalink

    list of tensors

  65. def toByteArray: Array[Byte]

    Permalink
    Definition Classes
    GeneratedMessage
  66. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  67. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  68. def toProtoString: String

    Permalink
    Definition Classes
    AttributeProto → GeneratedMessage
  69. val type: Option[AttributeType]

    Permalink

    The type field MUST be present for this version of the IR.

    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

  70. def update(ms: (Lens[AttributeProto, AttributeProto]) ⇒ Mutation[AttributeProto]*): AttributeProto

    Permalink
    Definition Classes
    Updatable
  71. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  73. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  74. def withDocString(__v: String): AttributeProto

    Permalink
  75. def withF(__v: Float): AttributeProto

    Permalink
  76. def withFloats(__v: Seq[Float]): AttributeProto

    Permalink
  77. def withG(__v: GraphProto): AttributeProto

    Permalink
  78. def withGraphs(__v: Seq[GraphProto]): AttributeProto

    Permalink
  79. def withI(__v: Long): AttributeProto

    Permalink
  80. def withInts(__v: Seq[Long]): AttributeProto

    Permalink
  81. def withName(__v: String): AttributeProto

    Permalink
  82. def withRefAttrName(__v: String): AttributeProto

    Permalink
  83. def withS(__v: ByteString): AttributeProto

    Permalink
  84. def withStrings(__v: Seq[ByteString]): AttributeProto

    Permalink
  85. def withT(__v: TensorProto): AttributeProto

    Permalink
  86. def withTensors(__v: Seq[TensorProto]): AttributeProto

    Permalink
  87. def withType(__v: AttributeType): AttributeProto

    Permalink
  88. def writeDelimitedTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage
  89. def writeTo(_output__: CodedOutputStream): Unit

    Permalink
    Definition Classes
    AttributeProto → GeneratedMessage
  90. def writeTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, Any]

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

  2. def getField(field: FieldDescriptor): Any

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue

Inherited from Product

Inherited from Equals

Inherited from Updatable[AttributeProto]

Inherited from Message[AttributeProto]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped