public interface TensorData
TensorData td = ...;
TensorIterator ti = td.iterator();
ti.start();
while (ti.isValid()) {
ti.getInt(0);
ti.getFloat(1);
ti.getInt(2);
// and others getXXX(),
// the getXXX(dimensionality) corresponding to the value
ti.next();
}
| Modifier and Type | Method and Description |
|---|---|
int |
cardinality() |
int |
estimatedCardinality() |
default int |
getArity() |
default long[] |
getShape() |
Representable[] |
getTypes() |
default boolean |
isEmpty() |
TensorIterator |
iterator() |
default int getArity()
Representable[] getTypes()
int estimatedCardinality()
int cardinality()
default boolean isEmpty()
TensorIterator iterator()
default long[] getShape()