package tensor
- Alphabetic
- Public
- All
Type Members
- case class BoolTensor(shape: TensorShape, data: Seq[Boolean]) extends TypedTensor[DT_BOOL.type] with Product with Serializable
- case class DComplexTensor(shape: TensorShape, data: Seq[Double]) extends TypedTensor[DT_COMPLEX128.type] with Product with Serializable
- case class DoubleTensor(shape: TensorShape, data: Seq[Double]) extends TypedTensor[DT_DOUBLE.type] with Product with Serializable
- case class FloatTensor(shape: TensorShape, data: Seq[Float]) extends TypedTensor[DT_FLOAT.type] with Product with Serializable
- case class Int16Tensor(shape: TensorShape, data: Seq[Int]) extends IntTensor[DT_INT16.type] with Product with Serializable
- case class Int32Tensor(shape: TensorShape, data: Seq[Int]) extends IntTensor[DT_INT32.type] with Product with Serializable
- case class Int64Tensor(shape: TensorShape, data: Seq[Long]) extends TypedTensor[DT_INT64.type] with Product with Serializable
- case class Int8Tensor(shape: TensorShape, data: Seq[Int]) extends IntTensor[DT_INT8.type] with Product with Serializable
- trait IntTensor[T <: DataType] extends TypedTensor[T]
- case class MapTensor(shape: TensorShape, data: Seq[Map[String, TypedTensor[_]]]) extends TypedTensor[DT_MAP.type] with Product with Serializable
-
final
case class
MapTensorData(subtensors: Map[String, TensorProto] = ...) extends GeneratedMessage with Message[MapTensorData] with Updatable[MapTensorData] with Product with Serializable
- Annotations
- @SerialVersionUID()
- case class SComplexTensor(shape: TensorShape, data: Seq[Float]) extends TypedTensor[DT_COMPLEX64.type] with Product with Serializable
- case class StringTensor(shape: TensorShape, data: Seq[String]) extends TypedTensor[DT_STRING.type] with Product with Serializable
-
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.
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()
- trait TensorProtoLens[T <: TypedTensor[_]] extends AnyRef
- trait TypedTensor[DTypeT] extends AnyRef
- trait TypedTensorFactory[TensorT <: TypedTensor[_]] extends AnyRef
- case class Uint16Tensor(shape: TensorShape, data: Seq[Int]) extends IntTensor[DT_UINT16.type] with Product with Serializable
- case class Uint32Tensor(shape: TensorShape, data: Seq[Int]) extends IntTensor[DT_UINT32.type] with Product with Serializable
- case class Uint64Tensor(shape: TensorShape, data: Seq[Long]) extends TypedTensor[DT_UINT64.type] with Product with Serializable
- case class Uint8Tensor(shape: TensorShape, data: Seq[Int]) extends IntTensor[DT_UINT8.type] with Product with Serializable
-
final
case class
VariantTensorDataProto(typeName: String = "", metadata: ByteString = ..., tensors: Seq[TensorProto] = _root_.scala.collection.Seq.empty) extends GeneratedMessage with Message[VariantTensorDataProto] with Updatable[VariantTensorDataProto] with Product with Serializable
Protocol buffer representing the serialization format of DT_VARIANT tensors.
Protocol buffer representing the serialization format of DT_VARIANT tensors.
- typeName
Name of the type of objects being serialized.
- metadata
Portions of the object that are not Tensors.
- tensors
Tensors contained within objects being serialized.
- Annotations
- @SerialVersionUID()
Value Members
- object BoolTensor extends TypedTensorFactory[BoolTensor] with Serializable
- object DComplexTensor extends TypedTensorFactory[DComplexTensor] with Serializable
- object DoubleTensor extends TypedTensorFactory[DoubleTensor] with Serializable
- object FloatTensor extends TypedTensorFactory[FloatTensor] with Serializable
- object Int16Tensor extends TypedTensorFactory[Int16Tensor] with Serializable
- object Int32Tensor extends TypedTensorFactory[Int32Tensor] with Serializable
- object Int64Tensor extends TypedTensorFactory[Int64Tensor] with Serializable
- object Int8Tensor extends TypedTensorFactory[Int8Tensor] with Serializable
- object IntTensor
- object MapTensor extends TypedTensorFactory[MapTensor] with Serializable
- object MapTensorData extends GeneratedMessageCompanion[MapTensorData] with Serializable
- object SComplexTensor extends TypedTensorFactory[SComplexTensor] with Serializable
- object StringTensor extends TypedTensorFactory[StringTensor] with Serializable
- object TensorProto extends GeneratedMessageCompanion[TensorProto] with Serializable
- object TensorProtoCompanion extends GeneratedFileObject
- object TypedTensorFactory
- object Uint16Tensor extends TypedTensorFactory[Uint16Tensor] with Serializable
- object Uint32Tensor extends TypedTensorFactory[Uint32Tensor] with Serializable
- object Uint64Tensor extends TypedTensorFactory[Uint64Tensor] with Serializable
- object Uint8Tensor extends TypedTensorFactory[Uint8Tensor] with Serializable
- object UintTensor
- object VariantTensorDataProto extends GeneratedMessageCompanion[VariantTensorDataProto] with Serializable