Crate tenferro_internal_ad_surface

Crate tenferro_internal_ad_surface 

Source
Expand description

Internal implementation crate. Not a stable public API.

tenferro now treats tidu::Value<DynTensor> as the only source of truth for reverse-mode metadata. This crate provides the thin dynamic tensor façade and surface-level grad/backward helpers built on top of that carrier.

Re-exports§

pub use core::dynamic::EigResult;
pub use core::dynamic::EighResult;
pub use core::dynamic::LstsqResult;
pub use core::dynamic::LuResult;
pub use core::dynamic::QrResult;
pub use core::dynamic::SlogdetResult;
pub use core::dynamic::SvdResult;
pub use core::dynamic::Tensor;
pub use jvp::jvp;
pub use jvp::JvpResult;

Modules§

core
jvp
runtime
snapshot
structured

Structs§

AdExecutionPolicy
BackwardOptions
CholeskyExResult
Structured Cholesky result with numerical status information.
DefaultRuntimeGuard
Guard returned by set_default_runtime.
GradOptions
InvExResult
Structured inverse result with numerical status information.
LuFactorExResult
Packed LU factorization result with numerical status information.
LuFactorResult
Packed LU factorization result.
NodeId
Stable identifier of an AD graph node.
Schema
Runtime schema for op inputs or outputs.
SlotSchema
AD-role metadata for one input or output slot.
SolveExResult
Structured solve result with numerical status information.
StructuredTensor
AD-capable structured tensor wrapper shared by dynamic tenferro frontends.
SvdOptions
Options for truncated SVD.
Value
Public value handle for reverse-mode AD.

Enums§

AutodiffError
AD-specific error type.
CheckpointHint
Public hint used by crate::LinearizableOp::checkpoint_hint to guide retain-vs-replay policy decisions.
CheckpointMode
ComputeDevice
Compute device that can execute tensor operations.
DynTensor
Runtime tensor wrapper for a fixed supported dtype set.
Error
Shared error type for dynamic tenferro surface crates.
LogicalMemorySpace
Logical memory space where tensor data resides.
LuPivot
Pivoting strategy for LU decomposition.
MatrixNormOrd
Matrix norm order for [crate::matrix_norm]-style public surfaces.
MemoryOrder
Memory ordering for new allocations.
NormKind
Norm kind for [crate::norm].
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.
VectorNormOrd
Vector norm order for [crate::vector_norm]-style public surfaces.

Traits§

LinearizableOp
LinearizedOp

Functions§

backward
grad
set_default_runtime
Sets the default runtime context for builder .run().
with_ad_policy
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§

AdResult
Result alias for AD APIs.
Result
Convenience result alias for tenferro surface errors.