mlx_rs

Module transforms

Source
Expand description

Implementations of function transformations.

Modules§

Traits§

  • Trait for functions/closures that can be converted into a closure that computes the gradient.
  • Similar to [IntoValueAndGrad] but for functions that take a hashmap of parameters.
  • Trait for functions/closures that can be converted into a closure that computes the value and gradient.

Functions§

  • Asynchronously evaluate an iterator of Arrays.
  • Asynchronously evaluate a module’s parameters.
  • Evaluate an iterator of Arrays.
  • Evaluate a module’s parameters.
  • Similar to jvp but handles closures that can return an error.
  • Similar to vjp but handles closures that can return an error.
  • Returns a function which computes the gradient of f.
  • Compute the Jacobian-vector product.
  • Returns a function which computes the value and gradient of f with keyed parameters.
  • Returns a function which computes the value and gradient of f.
  • Compute the vector-Jacobian product.

Type Aliases§