public interface BulkTensorBuilder
| Modifier and Type | Method and Description |
|---|---|
TensorData |
build(boolean[] booleans) |
TensorData |
build(java.nio.ByteBuffer values) |
TensorData |
build(double[] doubles) |
TensorData |
build(float[] floats) |
TensorData |
build(int[] ints) |
TensorData |
build(java.util.List<?> values) |
TensorData |
build(long[] longs) |
int |
getStaticCardinality()
The full count of the tensor values, ignoring a possible unknown dimension.
|
boolean |
hasVariableCardinality()
If the actual cardinality can be a multiple of the static cardinality, as opposed to exactly equal.
|
int getStaticCardinality()
boolean hasVariableCardinality()
TensorData build(float[] floats)
TensorData build(int[] ints)
TensorData build(long[] longs)
TensorData build(double[] doubles)
TensorData build(boolean[] booleans)
TensorData build(java.util.List<?> values)
TensorData build(java.nio.ByteBuffer values)