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 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

      TensorData build(float[] floats)
    • build

      TensorData build(int[] ints)
    • build

      TensorData build(long[] longs)
    • build

      TensorData build(double[] doubles)
    • build

      TensorData build(boolean[] booleans)
    • build

      TensorData build(List<?> values)
    • build

      TensorData build(ByteBuffer values)