Class/Object

io.hydrosphere.serving.onnx.onnx

AttributeProto

Related Docs: object AttributeProto | package onnx

Permalink

final case class AttributeProto(name: String = "", refAttrName: String = "", docString: String = "", type: AttributeType = ..., f: Float = 0.0f, i: Long = 0L, s: ByteString = ..., t: Option[TensorProto] = None, g: Option[GraphProto] = None, floats: Seq[Float] = _root_.scala.collection.Seq.empty, ints: Seq[Long] = _root_.scala.collection.Seq.empty, strings: Seq[ByteString] = _root_.scala.collection.Seq.empty, tensors: Seq[TensorProto] = _root_.scala.collection.Seq.empty, graphs: Seq[GraphProto] = _root_.scala.collection.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: String = "", refAttrName: String = "", docString: String = "", type: AttributeType = ..., f: Float = 0.0f, i: Long = 0L, s: ByteString = ..., t: Option[TensorProto] = None, g: Option[GraphProto] = None, floats: Seq[Float] = _root_.scala.collection.Seq.empty, ints: Seq[Long] = _root_.scala.collection.Seq.empty, strings: Seq[ByteString] = _root_.scala.collection.Seq.empty, tensors: Seq[TensorProto] = _root_.scala.collection.Seq.empty, graphs: Seq[GraphProto] = _root_.scala.collection.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: TraversableOnce[Float]): AttributeProto

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

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

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

    Permalink
  8. def addAllTensors(__vs: TraversableOnce[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 clearFloats: AttributeProto

    Permalink
  16. def clearG: AttributeProto

    Permalink
  17. def clearGraphs: AttributeProto

    Permalink
  18. def clearInts: AttributeProto

    Permalink
  19. def clearStrings: AttributeProto

    Permalink
  20. def clearT: AttributeProto

    Permalink
  21. def clearTensors: AttributeProto

    Permalink
  22. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AttributeProto → GeneratedMessage
  24. val docString: String

    Permalink

    A human-readable documentation for this attribute.

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

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

    Permalink
    Definition Classes
    AnyRef
  26. val f: Float

    Permalink

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

  27. def finalize(): Unit

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

    Permalink

    list of floats

  29. val g: Option[GraphProto]

    Permalink

    graph

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def getField(__field: FieldDescriptor): PValue

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

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

    Permalink
  34. def getT: TensorProto

    Permalink
  35. val graphs: Seq[GraphProto]

    Permalink

    list of graph

  36. val i: Long

    Permalink

    int

  37. val ints: Seq[Long]

    Permalink

    list of ints

  38. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AttributeProto → Message
  40. val name: 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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  44. val refAttrName: 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.

  45. val s: ByteString

    Permalink

    UTF-8 string

  46. final def serializedSize: Int

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

    Permalink

    list of UTF-8 strings

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

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

    Permalink

    tensor value

  50. val tensors: Seq[TensorProto]

    Permalink

    list of tensors

  51. def toByteArray: Array[Byte]

    Permalink
    Definition Classes
    GeneratedMessage
  52. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  53. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  54. def toProtoString: String

    Permalink
    Definition Classes
    AttributeProto → GeneratedMessage
  55. val type: 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AttributeProto → GeneratedMessage
  76. 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