Class/Object

com.intel.analytics.bigdl.dataset

TensorSample

Related Docs: object TensorSample | package dataset

Permalink

class TensorSample[T] extends Sample[T]

A kind of Sample who hold both DenseTensor and SparseTensor as features.

T

numeric type

Linear Supertypes
Sample[T], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TensorSample
  2. Sample
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): TensorSample.this.type

    Permalink

    returns

    A deep clone

    Definition Classes
    Sample → AnyRef
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def feature(index: Int)(implicit ev: TensorNumeric[T]): Tensor[T]

    Permalink

    Get feature tensor for given index

    Get feature tensor for given index

    index

    index of specific sample

    Definition Classes
    TensorSampleSample
  9. def feature()(implicit ev: TensorNumeric[T]): Tensor[T]

    Permalink

    Get feature tensor, for one feature Sample only.

    Get feature tensor, for one feature Sample only. You don't need to override this, because we have add a default implement to throw exception.

    returns

    feature tensor

    Definition Classes
    TensorSampleSample
  10. def featureLength(index: Int): Int

    Permalink

    First dimension length of index-th feature.

    First dimension length of index-th feature. This function could be used to sort samples in DataSet.

    Definition Classes
    TensorSampleSample
  11. val featureSize: Array[Array[Int]]

    Permalink
    Attributes
    protected
  12. val features: Array[Tensor[T]]

    Permalink

    feature tensors

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getData(): Array[T]

    Permalink

    Get data

    Get data

    returns

    data

    Definition Classes
    TensorSampleSample
  16. def getFeatureSize(): Array[Array[Int]]

    Permalink

    Get feature sizes

    Get feature sizes

    returns

    feature sizes

    Definition Classes
    TensorSampleSample
  17. def getLabelSize(): Array[Array[Int]]

    Permalink

    Get label sizes

    Get label sizes

    returns

    label sizes

    Definition Classes
    TensorSampleSample
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def label(index: Int)(implicit ev: TensorNumeric[T]): Tensor[T]

    Permalink

    Get label tensor for given index

    Get label tensor for given index

    index

    index of specific sample

    Definition Classes
    TensorSampleSample
  21. def label()(implicit ev: TensorNumeric[T]): Tensor[T]

    Permalink

    Get label tensor, for one label Sample only.

    Get label tensor, for one label Sample only. You don't need to override this, because we have add a default implement to throw exception.

    returns

    label tensor

    Definition Classes
    TensorSampleSample
  22. def labelLength(index: Int): Int

    Permalink

    First dimension length of index-th label.

    First dimension length of index-th label. This function could be used to find the longest label.

    Definition Classes
    TensorSampleSample
  23. val labelSize: Array[Array[Int]]

    Permalink
    Attributes
    protected
  24. val labels: Array[Tensor[T]]

    Permalink

    label tensors

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

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

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

    Permalink
    Definition Classes
    AnyRef
  28. def numFeature(): Int

    Permalink

    Number of tensors in feature

    Number of tensors in feature

    returns

    number of tensors in feature

    Definition Classes
    TensorSampleSample
  29. def numLabel(): Int

    Permalink

    Number of tensors in label

    Number of tensors in label

    returns

    number of tensors in label

    Definition Classes
    TensorSampleSample
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def set(featureData: Array[T], labelData: Array[T], featureSize: Array[Int], labelSize: Array[Int])(implicit ev: TensorNumeric[T]): Sample[T]

    Permalink

    Set data of feature and label.

    Set data of feature and label.

    Definition Classes
    Sample
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.0) Old interface

Inherited from Sample[T]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped