Class/Object

io.hydrosphere.serving.tensorflow.tensor

TensorProto

Related Docs: object TensorProto | package tensor

Permalink

final case class TensorProto(dtype: DataType = ..., tensorShape: Option[TensorShapeProto] = None, versionNumber: Int = 0, tensorContent: ByteString = ..., halfVal: Seq[Int] = _root_.scala.collection.Seq.empty, floatVal: Seq[Float] = _root_.scala.collection.Seq.empty, doubleVal: Seq[Double] = _root_.scala.collection.Seq.empty, intVal: Seq[Int] = _root_.scala.collection.Seq.empty, stringVal: Seq[ByteString] = _root_.scala.collection.Seq.empty, scomplexVal: Seq[Float] = _root_.scala.collection.Seq.empty, int64Val: Seq[Long] = _root_.scala.collection.Seq.empty, boolVal: Seq[Boolean] = _root_.scala.collection.Seq.empty, dcomplexVal: Seq[Double] = _root_.scala.collection.Seq.empty, variantVal: Seq[VariantTensorDataProto] = _root_.scala.collection.Seq.empty, uint32Val: Seq[Int] = _root_.scala.collection.Seq.empty, uint64Val: Seq[Long] = _root_.scala.collection.Seq.empty, mapVal: Seq[MapTensorData] = _root_.scala.collection.Seq.empty) extends GeneratedMessage with Message[TensorProto] with Updatable[TensorProto] with Product with Serializable

Protocol buffer representing a tensor.

tensorShape

Shape of the tensor.

versionNumber

Version number. In version 0, if the "repeated xxx" representations contain only one element, that element is repeated to fill the shape. This makes it easy to represent a constant Tensor with a single value.

tensorContent

Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation can be used for all tensor types. The purpose of this representation is to reduce serialization overhead during RPC call by avoiding serialization of many repeated small items.

halfVal

DT_HALF. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.

floatVal

DT_FLOAT.

doubleVal

DT_DOUBLE.

intVal

DT_INT32, DT_INT16, DT_INT8, DT_UINT8.

stringVal

DT_STRING

scomplexVal

DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.

int64Val

DT_INT64

boolVal

DT_BOOL

dcomplexVal

DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.

variantVal

DT_VARIANT

uint32Val

DT_UINT32

uint64Val

DT_UINT64

mapVal

Hydroserving

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[TensorProto], Message[TensorProto], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TensorProto
  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 TensorProto(dtype: DataType = ..., tensorShape: Option[TensorShapeProto] = None, versionNumber: Int = 0, tensorContent: ByteString = ..., halfVal: Seq[Int] = _root_.scala.collection.Seq.empty, floatVal: Seq[Float] = _root_.scala.collection.Seq.empty, doubleVal: Seq[Double] = _root_.scala.collection.Seq.empty, intVal: Seq[Int] = _root_.scala.collection.Seq.empty, stringVal: Seq[ByteString] = _root_.scala.collection.Seq.empty, scomplexVal: Seq[Float] = _root_.scala.collection.Seq.empty, int64Val: Seq[Long] = _root_.scala.collection.Seq.empty, boolVal: Seq[Boolean] = _root_.scala.collection.Seq.empty, dcomplexVal: Seq[Double] = _root_.scala.collection.Seq.empty, variantVal: Seq[VariantTensorDataProto] = _root_.scala.collection.Seq.empty, uint32Val: Seq[Int] = _root_.scala.collection.Seq.empty, uint64Val: Seq[Long] = _root_.scala.collection.Seq.empty, mapVal: Seq[MapTensorData] = _root_.scala.collection.Seq.empty)

    Permalink

    tensorShape

    Shape of the tensor.

    versionNumber

    Version number. In version 0, if the "repeated xxx" representations contain only one element, that element is repeated to fill the shape. This makes it easy to represent a constant Tensor with a single value.

    tensorContent

    Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation can be used for all tensor types. The purpose of this representation is to reduce serialization overhead during RPC call by avoiding serialization of many repeated small items.

    halfVal

    DT_HALF. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.

    floatVal

    DT_FLOAT.

    doubleVal

    DT_DOUBLE.

    intVal

    DT_INT32, DT_INT16, DT_INT8, DT_UINT8.

    stringVal

    DT_STRING

    scomplexVal

    DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.

    int64Val

    DT_INT64

    boolVal

    DT_BOOL

    dcomplexVal

    DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.

    variantVal

    DT_VARIANT

    uint32Val

    DT_UINT32

    uint64Val

    DT_UINT64

    mapVal

    Hydroserving

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 addAllBoolVal(__vs: TraversableOnce[Boolean]): TensorProto

    Permalink
  5. def addAllDcomplexVal(__vs: TraversableOnce[Double]): TensorProto

    Permalink
  6. def addAllDoubleVal(__vs: TraversableOnce[Double]): TensorProto

    Permalink
  7. def addAllFloatVal(__vs: TraversableOnce[Float]): TensorProto

    Permalink
  8. def addAllHalfVal(__vs: TraversableOnce[Int]): TensorProto

    Permalink
  9. def addAllInt64Val(__vs: TraversableOnce[Long]): TensorProto

    Permalink
  10. def addAllIntVal(__vs: TraversableOnce[Int]): TensorProto

    Permalink
  11. def addAllMapVal(__vs: TraversableOnce[MapTensorData]): TensorProto

    Permalink
  12. def addAllScomplexVal(__vs: TraversableOnce[Float]): TensorProto

    Permalink
  13. def addAllStringVal(__vs: TraversableOnce[ByteString]): TensorProto

    Permalink
  14. def addAllUint32Val(__vs: TraversableOnce[Int]): TensorProto

    Permalink
  15. def addAllUint64Val(__vs: TraversableOnce[Long]): TensorProto

    Permalink
  16. def addAllVariantVal(__vs: TraversableOnce[VariantTensorDataProto]): TensorProto

    Permalink
  17. def addBoolVal(__vs: Boolean*): TensorProto

    Permalink
  18. def addDcomplexVal(__vs: Double*): TensorProto

    Permalink
  19. def addDoubleVal(__vs: Double*): TensorProto

    Permalink
  20. def addFloatVal(__vs: Float*): TensorProto

    Permalink
  21. def addHalfVal(__vs: Int*): TensorProto

    Permalink
  22. def addInt64Val(__vs: Long*): TensorProto

    Permalink
  23. def addIntVal(__vs: Int*): TensorProto

    Permalink
  24. def addMapVal(__vs: MapTensorData*): TensorProto

    Permalink
  25. def addScomplexVal(__vs: Float*): TensorProto

    Permalink
  26. def addStringVal(__vs: ByteString*): TensorProto

    Permalink
  27. def addUint32Val(__vs: Int*): TensorProto

    Permalink
  28. def addUint64Val(__vs: Long*): TensorProto

    Permalink
  29. def addVariantVal(__vs: VariantTensorDataProto*): TensorProto

    Permalink
  30. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  31. val boolVal: Seq[Boolean]

    Permalink

    DT_BOOL

  32. def clearBoolVal: TensorProto

    Permalink
  33. def clearDcomplexVal: TensorProto

    Permalink
  34. def clearDoubleVal: TensorProto

    Permalink
  35. def clearFloatVal: TensorProto

    Permalink
  36. def clearHalfVal: TensorProto

    Permalink
  37. def clearInt64Val: TensorProto

    Permalink
  38. def clearIntVal: TensorProto

    Permalink
  39. def clearMapVal: TensorProto

    Permalink
  40. def clearScomplexVal: TensorProto

    Permalink
  41. def clearStringVal: TensorProto

    Permalink
  42. def clearTensorShape: TensorProto

    Permalink
  43. def clearUint32Val: TensorProto

    Permalink
  44. def clearUint64Val: TensorProto

    Permalink
  45. def clearVariantVal: TensorProto

    Permalink
  46. def clone(): AnyRef

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

    Permalink
    Definition Classes
    TensorProto → GeneratedMessage
  48. val dcomplexVal: Seq[Double]

    Permalink

    DT_COMPLEX128.

    DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.

  49. val doubleVal: Seq[Double]

    Permalink

    DT_DOUBLE.

  50. val dtype: DataType

    Permalink
  51. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  52. def finalize(): Unit

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

    Permalink

    DT_FLOAT.

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

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

    Permalink
    Definition Classes
    TensorProto → GeneratedMessage
  56. def getFieldByNumber(__fieldNumber: Int): Any

    Permalink
    Definition Classes
    TensorProto → GeneratedMessage
  57. def getTensorShape: TensorShapeProto

    Permalink
  58. val halfVal: Seq[Int]

    Permalink

    DT_HALF.

    DT_HALF. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.

  59. val int64Val: Seq[Long]

    Permalink

    DT_INT64

  60. val intVal: Seq[Int]

    Permalink

    DT_INT32, DT_INT16, DT_INT8, DT_UINT8.

  61. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  62. val mapVal: Seq[MapTensorData]

    Permalink

    Hydroserving

  63. def mergeFrom(_input__: CodedInputStream): TensorProto

    Permalink
    Definition Classes
    TensorProto → Message
  64. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  67. val scomplexVal: Seq[Float]

    Permalink

    DT_COMPLEX64.

    DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.

  68. final def serializedSize: Int

    Permalink
    Definition Classes
    TensorProto → GeneratedMessage
  69. val stringVal: Seq[ByteString]

    Permalink

    DT_STRING

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

    Permalink
    Definition Classes
    AnyRef
  71. val tensorContent: ByteString

    Permalink

    Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer.

    Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation can be used for all tensor types. The purpose of this representation is to reduce serialization overhead during RPC call by avoiding serialization of many repeated small items.

  72. val tensorShape: Option[TensorShapeProto]

    Permalink

    Shape of the tensor.

  73. def toByteArray: Array[Byte]

    Permalink
    Definition Classes
    GeneratedMessage
  74. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  75. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  76. def toProtoString: String

    Permalink
    Definition Classes
    TensorProto → GeneratedMessage
  77. val uint32Val: Seq[Int]

    Permalink

    DT_UINT32

  78. val uint64Val: Seq[Long]

    Permalink

    DT_UINT64

  79. def update(ms: (Lens[TensorProto, TensorProto]) ⇒ Mutation[TensorProto]*): TensorProto

    Permalink
    Definition Classes
    Updatable
  80. val variantVal: Seq[VariantTensorDataProto]

    Permalink

    DT_VARIANT

  81. val versionNumber: Int

    Permalink

    Version number.

    Version number. In version 0, if the "repeated xxx" representations contain only one element, that element is repeated to fill the shape. This makes it easy to represent a constant Tensor with a single value.

  82. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  85. def withBoolVal(__v: Seq[Boolean]): TensorProto

    Permalink
  86. def withDcomplexVal(__v: Seq[Double]): TensorProto

    Permalink
  87. def withDoubleVal(__v: Seq[Double]): TensorProto

    Permalink
  88. def withDtype(__v: DataType): TensorProto

    Permalink
  89. def withFloatVal(__v: Seq[Float]): TensorProto

    Permalink
  90. def withHalfVal(__v: Seq[Int]): TensorProto

    Permalink
  91. def withInt64Val(__v: Seq[Long]): TensorProto

    Permalink
  92. def withIntVal(__v: Seq[Int]): TensorProto

    Permalink
  93. def withMapVal(__v: Seq[MapTensorData]): TensorProto

    Permalink
  94. def withScomplexVal(__v: Seq[Float]): TensorProto

    Permalink
  95. def withStringVal(__v: Seq[ByteString]): TensorProto

    Permalink
  96. def withTensorContent(__v: ByteString): TensorProto

    Permalink
  97. def withTensorShape(__v: TensorShapeProto): TensorProto

    Permalink
  98. def withUint32Val(__v: Seq[Int]): TensorProto

    Permalink
  99. def withUint64Val(__v: Seq[Long]): TensorProto

    Permalink
  100. def withVariantVal(__v: Seq[VariantTensorDataProto]): TensorProto

    Permalink
  101. def withVersionNumber(__v: Int): TensorProto

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

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

    Permalink
    Definition Classes
    TensorProto → GeneratedMessage
  104. 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[TensorProto]

Inherited from Message[TensorProto]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped