Packages

p

com.linkedin.feathr.common

tensorbuilder

package tensorbuilder

Type Members

  1. class BufferUtils extends AnyRef
  2. 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

  3. 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#INT representation.

    Build a dense tensor based on input column types and shape, All columns except the last one, must have Primitive#INT representation. The last column type is considered to be value type and determines

  4. class DenseTensorBuilderFactory extends TensorBuilderFactory

  5. final class SortUtils extends AnyRef
  6. 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:

    1. Initialize the builder using #start 2. Set values for each column in the first row, using #setInt, #setFloat, etc. 3. Call #append to finish the row. 4. Repeat steps 2 and 3 for any remaining rows. 5. Call #build to build the TensorData object.

    Instances of TensorBuilder can be safely reused by calling #start to "reset" the builder.

    Except for any subclass implementation that explicitly states otherwise, instances of TensorBuilder MUST NOT be used in a concurrent fashion.

  7. trait TensorBuilderFactory extends AnyRef
  8. trait TypedOperator extends AnyRef
  9. 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.

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

  11. final class UniversalTensorBuilderFactory extends TensorBuilderFactory

Ungrouped