package tensorbuilder
Type Members
- class BufferUtils extends AnyRef
-
trait
BulkTensorBuilder extends AnyRef
An interface for building Tensors from arrays and collections of values This is targeted towards building DenseTensor.
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
-
class
DenseTensorBuilder extends TensorBuilder[T] forSome {type T <: TensorBuilder[T]} with BulkTensorBuilder
Build a dense tensor based on input column types and shape, All columns except the last one, must have
Primitive#INTrepresentation.Build a dense tensor based on input column types and shape, All columns except the last one, must have
Primitive#INTrepresentation. The last column type is considered to be value type and determines - class DenseTensorBuilderFactory extends TensorBuilderFactory
- final class SortUtils extends AnyRef
-
trait
TensorBuilder[T <: TensorBuilder[T]] extends TypedOperator with WriteableTuple[T]
A stateful object used to build instances of tensors of some specific representation without knowing its details.
A stateful object used to build instances of tensors of some specific representation without knowing its details.
Values are written to the builder row-wise.
How to use:
- Initialize the builder using
#start2. Set values for each column in the first row, using#setInt,#setFloat, etc. 3. Call#appendto finish the row. 4. Repeat steps 2 and 3 for any remaining rows. 5. Call#buildto build the TensorData object.
Instances of TensorBuilder can be safely reused by calling
#startto "reset" the builder.Except for any subclass implementation that explicitly states otherwise, instances of TensorBuilder MUST NOT be used in a concurrent fashion.
- Initialize the builder using
- trait TensorBuilderFactory extends AnyRef
- trait TypedOperator extends AnyRef
-
class
UniversalTensor extends TensorData
Implements a tensor from pre-allocated arrays.
Implements a tensor from pre-allocated arrays.
The keys (int and long) and the values are stored in parallel arrays to float values. Multiple keys of a certain type can be associated to a value, in that case the key array size will be a multiple of the value array size.
-
final
class
UniversalTensorBuilder extends ColumnUtils with TensorBuilder[UniversalTensorBuilder]
Builds tensors with columns being a requested permutation of int, long, and float.
Builds tensors with columns being a requested permutation of int, long, and float. Am instance of UniversalTensorBuilder can be reused by calling start method.
- final class UniversalTensorBuilderFactory extends TensorBuilderFactory