Interface BulkTensorBuilder
- All Known Implementing Classes:
DenseTensorBuilder
public interface BulkTensorBuilder
An interface for building Tensors from arrays and collections of values
This is targeted towards building DenseTensor. The input is usually just values
and dimensions are implicit and can be determined by looking at TensorType
-
Method Summary
Modifier and TypeMethodDescriptionbuild(boolean[] booleans) build(double[] doubles) build(float[] floats) build(int[] ints) build(long[] longs) build(ByteBuffer values) intThe full count of the tensor values, ignoring a possible unknown dimension.booleanIf the actual cardinality can be a multiple of the static cardinality, as opposed to exactly equal.
-
Method Details
-
getStaticCardinality
int getStaticCardinality()The full count of the tensor values, ignoring a possible unknown dimension. -
hasVariableCardinality
boolean hasVariableCardinality()If the actual cardinality can be a multiple of the static cardinality, as opposed to exactly equal. -
build
-
build
-
build
-
build
-
build
-
build
-
build
-