Skip to main content

Module any_scalar

Module any_scalar 

Source
Expand description

Dynamic scalar compatibility wrapper built on rank-0 IdxTensor.

Structsยง

AnyScalar
Dynamic scalar compatibility wrapper for tensor4all-core. This owns a rank-0 IdxTensor so that scalar values can participate in the same eager autodiff graph as tensors while preserving the existing dynamic scalar API shape. The infallible scalar constructors retain a tensor-initialization failure for later fallible tensor or AD operations. Infallible arithmetic also retains typed backend diagnostics and the tracked-state marker when an eager operation fails.
AnyScalarError
Error returned by eager-tensor AnyScalar operations (autodiff, conjugation, and complex composition).