public final class TensorTypes
extends java.lang.Object
TensorType| Modifier and Type | Method and Description |
|---|---|
static TensorType |
fromRepresentables(boolean sparse,
Representable[] representables)
Creates a synthetic TensorType from the information available on TensorData.
|
static TensorType |
fromTensorData(TensorData tensorData)
Creates a synthetic TensorType from a TensorData.
|
static TensorType |
parseTensorType(java.lang.String syntax)
Creates a TensorType from a string representation of the type.
|
public static TensorType parseTensorType(java.lang.String syntax)
public static TensorType fromRepresentables(boolean sparse, Representable[] representables)
sparse - if the type should be sparserepresentables - primitive types of the tensor's columnspublic static TensorType fromTensorData(TensorData tensorData)
tensorData - an instance of tensor from which to derive type information