Class IndexedTensor.Builder

    • Method Detail

      • of

        public static IndexedTensor.Builder of​(TensorType type,
                                               float[] values)
        Creates a builder initialized with the given values
        Parameters:
        type - the type of the tensor to build
        values - the initial values of the tensor. This transfers ownership of the value array - it must not be further mutated by the caller
      • of

        public static IndexedTensor.Builder of​(TensorType type,
                                               double[] values)
        Creates a builder initialized with the given values
        Parameters:
        type - the type of the tensor to build
        values - the initial values of the tensor. This transfers ownership of the value array - it must not be further mutated by the caller
      • of

        public static IndexedTensor.Builder of​(TensorType type,
                                               DimensionSizes sizes)
        Create a builder with dimension size information for this instance. Must be one size entry per dimension, and, agree with the type size information when specified in the type. If sizes are completely specified in the type this size information is redundant.
      • of

        public static IndexedTensor.Builder of​(TensorType type,
                                               DimensionSizes sizes,
                                               float[] values)
        Creates a builder initialized with the given values
        Parameters:
        type - the type of the tensor to build
        values - the initial values of the tensor in the standard value order. This transfers ownership of the value array - it must not be further mutated by the caller
      • of

        public static IndexedTensor.Builder of​(TensorType type,
                                               DimensionSizes sizes,
                                               double[] values)
        Creates a builder initialized with the given values
        Parameters:
        type - the type of the tensor to build
        values - the initial values of the tensor in the standard value order. This transfers ownership of the value array - it must not be further mutated by the caller