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.ScopeModifier and TypeMethodDescriptionstatic Grad.ScopeGrad.disabled()Disables gradient recording until the returned scope is closed.static Grad.ScopeEnables autocast todtype(F16 or BF16) until the returned scope is closed.static Grad.ScopeAutocast.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.ScopeGrad.inferenceScope()The scope form ofGrad.inference(Supplier), for code that computes several outputs: no gradients, and intermediates are internal (their buffers are reused and inference fusions apply).