Packages

final class TensorType extends Serializable

Type definition for a TypedTensor, defines the value type, dimension types and dimension names.

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TensorType
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TensorType(tensorCategory: TensorCategory, valueType: ValueType, dimensionTypes: List[DimensionType])

    tensorCategory

    the category of the tensor type, such as dense, sparse, etc. NOTE: at the moment this is stored as is, and no additional validation is guaranteed (such as choosing the right tensor builder based on the tensor category).

    valueType

    the type of the value contained in the tensor.

    dimensionTypes

    a sequence of types for all dimensions of the tensor (can be empty).

  2. new TensorType(tensorCategory: TensorCategory, valueType: ValueType, dimensionTypes: List[DimensionType], dimensionNames: List[String])

    tensorCategory

    the category of the tensor type, such as dense, sparse, etc. NOTE: at the moment this is stored as is, and no additional validation is guaranteed (such as choosing the right tensor builder based on the tensor category).

    valueType

    the type of the value contained in the tensor.

    dimensionTypes

    a sequence of types for all dimensions of the tensor (can be empty).

    dimensionNames

    are local to the TensorType, allowing to differentiate between multiple instances of the same dimension type, for example, x used for both viewer and viewee. If null, defaults to names taken from dimensionTypes.

  3. new TensorType(valueType: ValueType, dimensionTypes: List[DimensionType], dimensionNames: List[String])

    Create a SPARSE tensor type.

    Create a SPARSE tensor type.

    valueType

    the type of the value contained in the tensor.

    dimensionTypes

    a sequence of types for all dimensions of the tensor (can be empty).

    dimensionNames

    are local to the TensorType, allowing to differentiate between multiple instances of the same dimension type, for example, x used for both viewer and viewee. If null, defaults to names taken from dimensionTypes.

  4. new TensorType(valueType: ValueType, dimensionTypes: List[DimensionType])

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(o: Any): Boolean
    Definition Classes
    TensorType → AnyRef → Any
    Annotations
    @Override()
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def getColumnTypes(): Array[Representable]

    WARNING: this returns primitive representations, not DimensionType/ValueType.

    WARNING: this returns primitive representations, not DimensionType/ValueType.

    returns

    Dimension types followed by a value type.

  11. def getDenseSize(): Int
  12. def getDimensionNames(): List[String]
  13. def getDimensionTypes(): List[DimensionType]
  14. def getShape(): Array[Int]
  15. def getTensorCategory(): TensorCategory

    returns

    the category of this tensor. NOTE: only use in context of the FDS until adopted elsewhere. This defaults to SPARSE if not specified in constructor.

  16. def getValueType(): ValueType
  17. def hashCode(): Int
    Definition Classes
    TensorType → AnyRef → Any
    Annotations
    @Override()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def setDimensions(target: WriteableTuple, dimensions: Array[AnyRef]): Unit
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    TensorType → AnyRef → Any
    Annotations
    @Override()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped