Package-level declarations

Types

Link copied to clipboard
class OpsBoundTensor<T : DType, V>(val origin: Tensor<T, V>, opsRef: TensorOps) : Tensor<T, V>

Lightweight wrapper that binds a Tensor to a specific TensorOps implementation. Useful to evaluate operator overloads with a desired backend (CPU/GPU/etc.).

Functions

Link copied to clipboard
fun <T : DType, V> Tensor<T, V>.bind(ctx: ExecutionContext): Tensor<T, V>

Binds this tensor to the operations of the given execution context.

Link copied to clipboard
fun <T : DType, V> Tensor<T, V>.withOps(ops: TensorOps): Tensor<T, V>

Returns a Tensor that uses the provided ops for subsequent operations.