Crate tenferro_dynamic_compute

Crate tenferro_dynamic_compute 

Source
Expand description

Dynamic non-AD tensor compute facade for tenferro-rs.

This crate is the public home for runtime-selected dtypes without autodiff. It re-exports the shared dynamic tensor substrate plus runtime management.

§Examples

use tenferro_dynamic_compute::{ScalarType, Tensor};
use tenferro_tensor::{MemoryOrder, Tensor as DenseTensor};

let dense = DenseTensor::<f64>::from_slice(&[1.0, 2.0], &[2], MemoryOrder::ColumnMajor)?;
let value: Tensor = dense.into();

assert_eq!(value.scalar_type(), ScalarType::F64);

Modules§

snapshot
Dynamic primal snapshots shared across tenferro surface crates.

Structs§

DefaultRuntimeGuard
Guard returned by set_default_runtime.
StructuredTensor
AD-capable structured tensor wrapper shared by dynamic tenferro frontends.

Enums§

ComputeDevice
Compute device that can execute tensor operations.
Error
Shared error type for dynamic tenferro surface crates.
LogicalMemorySpace
Logical memory space where tensor data resides.
MemoryOrder
Memory ordering for new allocations.
RuntimeContext
Runtime execution context used by builder .run() entry points.
ScalarType
Runtime scalar type tag used by dynamic tensor wrappers.
ScalarValue
Dynamic scalar value extracted from a rank-0 dynamic tensor.
Tensor
Runtime tensor wrapper for a fixed supported dtype set.

Functions§

set_default_runtime
Sets the default runtime context for builder .run().
with_default_runtime
Runs f with the default runtime context.
with_runtime
Runs f with an explicitly supplied runtime installed for the duration of the closure.

Type Aliases§

Result
Convenience result alias for tenferro surface errors.