final case class SparseTensorProto(values: Option[TensorProto] = _root_.scala.None, indices: Option[TensorProto] = _root_.scala.None, dims: Seq[Long] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[SparseTensorProto] with Product with Serializable

A serialized sparse-tensor value

values

The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.

indices

The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]

dims

The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]

Annotations
@SerialVersionUID()
Linear Supertypes
Updatable[SparseTensorProto], GeneratedMessage, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparseTensorProto
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SparseTensorProto(values: Option[TensorProto] = _root_.scala.None, indices: Option[TensorProto] = _root_.scala.None, dims: Seq[Long] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    values

    The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.

    indices

    The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]

    dims

    The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]

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 addAllDims(__vs: Iterable[Long]): SparseTensorProto
  5. def addDims(__vs: Long*): SparseTensorProto
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clearDims: SparseTensorProto
  8. def clearIndices: SparseTensorProto
  9. def clearValues: SparseTensorProto
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  11. def companion: SparseTensorProto.type
    Definition Classes
    SparseTensorProto → GeneratedMessage
  12. val dims: Seq[Long]
  13. def discardUnknownFields: SparseTensorProto
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    SparseTensorProto → GeneratedMessage
  17. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    SparseTensorProto → GeneratedMessage
  18. def getIndices: TensorProto
  19. def getValues: TensorProto
  20. val indices: Option[TensorProto]
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  25. def productElementNames: Iterator[String]
    Definition Classes
    Product
  26. def serializedSize: Int
    Definition Classes
    SparseTensorProto → GeneratedMessage
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  29. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  30. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  31. def toProtoString: String
    Definition Classes
    SparseTensorProto → GeneratedMessage
  32. val unknownFields: UnknownFieldSet
  33. def update(ms: (Lens[SparseTensorProto, SparseTensorProto]) => Mutation[SparseTensorProto]*): SparseTensorProto
    Definition Classes
    Updatable
  34. val values: Option[TensorProto]
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. def withDims(__v: Seq[Long]): SparseTensorProto
  39. def withIndices(__v: TensorProto): SparseTensorProto
  40. def withUnknownFields(__v: UnknownFieldSet): SparseTensorProto
  41. def withValues(__v: TensorProto): SparseTensorProto
  42. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  43. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    SparseTensorProto → GeneratedMessage
  44. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Updatable[SparseTensorProto]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped