public class GenericTypedTensor extends java.lang.Object implements TypedTensor
| Modifier and Type | Field and Description |
|---|---|
protected TensorData |
_data |
protected TensorType |
_type |
| Constructor and Description |
|---|
GenericTypedTensor(TensorData data,
TensorType type)
Build for tensors that have a dynamic type, for example as a result of
a tensor operation that changes the shape.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Is never equal to instances of other classes, including Marmalade-generated.
|
TensorData |
getData()
Returns data content.
|
TensorType |
getType()
Returns type metadata.
|
int |
hashCode() |
TypedTensor |
slice(java.lang.Object val)
Slice along 1st dimension.
|
TypedTensor |
subSlice(java.lang.Object val) |
java.lang.String |
toDebugString()
Returns human-readable summary suitable for debugging.
|
java.lang.String |
toDebugString(int maxStringLenLimit) |
protected final TensorData _data
protected final TensorType _type
public GenericTypedTensor(TensorData data, TensorType type)
data - actual datatype - the tensor typepublic TensorData getData()
getData in interface TypedTensorpublic TensorType getType()
getType in interface TypedTensorpublic TypedTensor slice(java.lang.Object val)
slice in interface TypedTensorpublic TypedTensor subSlice(java.lang.Object val)
subSlice in interface TypedTensorpublic java.lang.String toDebugString()
toDebugString in interface TypedTensorpublic java.lang.String toDebugString(int maxStringLenLimit)
toDebugString in interface TypedTensorpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object