Skip to main content

Crate rutensor

Crate rutensor 

Source
Expand description

Tensor linear algebra on Ruda device tensors.

Use einsum for index expressions or construct an OperationDescriptor and reuse a Plan with different buffers and scalar coefficients.

Structs§

EinsumPlan
A reusable einsum expression with fixed input shapes, strides and storage types.
OperandDescriptor
Associates index names and a unary transform with a tensor descriptor.
OperationDescriptor
A buffer-independent operation. Input order is the order passed to its constructor.
Plan
A reusable index map and execution description, independent of buffer addresses.
RudaTensor
The basic tensor primitive struct.
TensorDescriptor
Extents and element strides, relative to the start of a tensor’s buffer view.

Enums§

BinaryOp
ComputeType
Arithmetic precision, including operand transforms and scalar coefficients.
DType
Error
Errors detected before a device operation is submitted.
ReductionOp
UnaryOp

Functions§

contract
Sum the product of A and B over modes absent from the output.
einsum
Evaluate an einsum expression on device tensors without reading values back to the host.
einsum_with_options
elementwise_binary
Named-axis broadcasting followed by a binary operation.
elementwise_trinary
Combine three broadcast operands as (A op_ab B) op_abc C.
permute
Materialize a permutation in a new packed row-major tensor; do not return an aliased view.
reduce
Reduce modes absent from output_modes, in the specified output order.

Type Aliases§

Mode
A named tensor index. Names identify axes independently of their position.
Result