Uses of Interface
ai.beestream.jitnn.Grad.Scope

Packages that use Grad.Scope
Package
Description
The jitNN API: Tensor (n-dimensional arrays, lazy on TornadoVM devices), reverse-mode differentiation (Tensor.backward(), Grad), the functional operators of F, linear algebra (Linalg), Fourier transforms (Fft), sparse matrices (SparseMatrix), mixed precision (Autocast) and user-defined operators (CustomOp).
  • Uses of Grad.Scope in ai.beestream.jitnn

    Methods in ai.beestream.jitnn that return Grad.Scope
    Modifier and Type
    Method
    Description
    static Grad.Scope
    Grad.disabled()
    Disables gradient recording until the returned scope is closed.
    static Grad.Scope
    Autocast.enable(DType dtype)
    Enables autocast to dtype (F16 or BF16) until the returned scope is closed.
    static Grad.Scope
    Autocast.enableHalf()
    Half-precision activations, as a model converted to FP16: inside the scope, linear layers, element-wise operators, LayerNorm and RMSNorm and attention take and return FP16 tensors (computing in FP32 inside), so activations stay FP16 between them, with half the memory traffic.
    static Grad.Scope
    The scope form of Grad.inference(Supplier), for code that computes several outputs: no gradients, and intermediates are internal (their buffers are reused and inference fusions apply).