final class TensorType extends Serializable
Type definition for a TypedTensor, defines the value type, dimension types and dimension names.
- Alphabetic
- By Inheritance
- TensorType
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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).
-
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.
-
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.
- new TensorType(valueType: ValueType, dimensionTypes: List[DimensionType])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(o: Any): Boolean
- Definition Classes
- TensorType → AnyRef → Any
- Annotations
- @Override()
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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.
- def getDenseSize(): Int
- def getDimensionNames(): List[String]
- def getDimensionTypes(): List[DimensionType]
- def getShape(): Array[Int]
-
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.
- def getValueType(): ValueType
-
def
hashCode(): Int
- Definition Classes
- TensorType → AnyRef → Any
- Annotations
- @Override()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def setDimensions(target: WriteableTuple, dimensions: Array[AnyRef]): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- TensorType → AnyRef → Any
- Annotations
- @Override()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()