Packages

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)

    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
    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: TraversableOnce[Float]): AttributeProto
  5. def addAllGraphs(__vs: TraversableOnce[GraphProto]): AttributeProto
  6. def addAllInts(__vs: TraversableOnce[Long]): AttributeProto
  7. def addAllStrings(__vs: TraversableOnce[ByteString]): AttributeProto
  8. def addAllTensors(__vs: TraversableOnce[TensorProto]): AttributeProto
  9. def addFloats(__vs: Float*): AttributeProto
  10. def addGraphs(__vs: GraphProto*): AttributeProto
  11. def addInts(__vs: Long*): AttributeProto
  12. def addStrings(__vs: ByteString*): AttributeProto
  13. def addTensors(__vs: TensorProto*): AttributeProto
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def clearFloats: AttributeProto
  16. def clearG: AttributeProto
  17. def clearGraphs: AttributeProto
  18. def clearInts: AttributeProto
  19. def clearStrings: AttributeProto
  20. def clearT: AttributeProto
  21. def clearTensors: AttributeProto
  22. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  23. def companion: AttributeProto.type
    Definition Classes
    AttributeProto → GeneratedMessage
  24. val docString: String
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. val f: Float
  27. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. val floats: Seq[Float]
  29. val g: Option[GraphProto]
  30. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    AttributeProto → GeneratedMessage
  32. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    AttributeProto → GeneratedMessage
  33. def getG: GraphProto
  34. def getT: TensorProto
  35. val graphs: Seq[GraphProto]
  36. val i: Long
  37. val ints: Seq[Long]
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. def mergeFrom(_input__: CodedInputStream): AttributeProto
    Definition Classes
    AttributeProto → Message
  40. val name: String
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  44. val refAttrName: String
  45. val s: ByteString
  46. final def serializedSize: Int
    Definition Classes
    AttributeProto → GeneratedMessage
  47. val strings: Seq[ByteString]
  48. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  49. val t: Option[TensorProto]
  50. val tensors: Seq[TensorProto]
  51. def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  52. def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  53. def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  54. def toProtoString: String
    Definition Classes
    AttributeProto → GeneratedMessage
  55. val type: AttributeType
  56. def update(ms: (Lens[AttributeProto, AttributeProto]) ⇒ Mutation[AttributeProto]*): AttributeProto
    Definition Classes
    Updatable
  57. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  60. def withDocString(__v: String): AttributeProto
  61. def withF(__v: Float): AttributeProto
  62. def withFloats(__v: Seq[Float]): AttributeProto
  63. def withG(__v: GraphProto): AttributeProto
  64. def withGraphs(__v: Seq[GraphProto]): AttributeProto
  65. def withI(__v: Long): AttributeProto
  66. def withInts(__v: Seq[Long]): AttributeProto
  67. def withName(__v: String): AttributeProto
  68. def withRefAttrName(__v: String): AttributeProto
  69. def withS(__v: ByteString): AttributeProto
  70. def withStrings(__v: Seq[ByteString]): AttributeProto
  71. def withT(__v: TensorProto): AttributeProto
  72. def withTensors(__v: Seq[TensorProto]): AttributeProto
  73. def withType(__v: AttributeType): AttributeProto
  74. def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  75. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    AttributeProto → GeneratedMessage
  76. def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, Any]
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

  2. def getField(field: FieldDescriptor): Any
    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