Lucid3.0
DocsAPI ReferenceChangelog
Tensorlucid.Tensor88
Tensor Creation23
Tensor Operations158
Autogradlucid.autograd18
Distributionslucid.distributions57
Einopslucid.einops4
FFTlucid.fft22
Functional Transformslucid.func9
vmapfgradfgrad_and_valuefvjpfjvpflinearizefjacrevfjacfwdfhessianf
Linear Algebralucid.linalg39
Mixed Precisionlucid.amp1
Neural Networkslucid.nn168
Optimizerslucid.optim29
Profilerlucid.profiler6
Serializationlucid.serialization6
Signallucid.signal12
Special Functionslucid.special38
module

func

9 members
lucid.func

`lucid.func` — functional transforms (reference-framework func-compatible API).

Functions

fnvmap→ Callable

Vectorise `func` over a batch axis to produce a batched function.

fngrad→ Callable

Build a function returning the gradient of `func`.

fngrad_and_value→ Callable

Return a function computing both the gradient and the primal value.

fnvjp→ tuple

Compute the vector-Jacobian product of `func` at `primals`.

fnjvp→ tuple

Compute the Jacobian-vector product of `func` at `primals`.

fnlinearize→ tuple

Linearise `func` around `primals` for reuse across many tangents.

fnjacrev→ Callable

Build a function returning the reverse-mode Jacobian of `func`.

fnjacfwd→ Callable

Build a function returning the forward-mode Jacobian of `func`.

fnhessian→ Callable

Build a function returning the Hessian of a scalar-valued `func`.

Lucid3.0

Production-grade ML framework for Apple Silicon. MLX + Accelerate native backend.

Documentation

  • Quickstart
  • Installation
  • Autograd
  • Metal Device

API Reference

  • lucid.Tensor
  • lucid.nn
  • lucid.optim
  • lucid.autograd

Resources

  • GitHub(opens in new tab)
  • Changelog

© 2026 Lucid. Built for Apple Silicon.

Python 3.14+ · macOS arm64