mlx_closure_value_and_grad_apply function

  1. @Native<Int Function(Pointer<mlx_vector_array>, Pointer<mlx_vector_array>, mlx_closure_value_and_grad, mlx_vector_array)>(ffi.Pointer<mlx_vector_array>, ffi.Pointer<mlx_vector_array>, mlx_closure_value_and_grad, mlx_vector_array)>()
int mlx_closure_value_and_grad_apply(
  1. Pointer<mlx_vector_array> res_0,
  2. Pointer<mlx_vector_array> res_1,
  3. mlx_closure_value_and_grad cls,
  4. mlx_vector_array input,
)

Implementation

@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<mlx_vector_array>,
    ffi.Pointer<mlx_vector_array>,
    mlx_closure_value_and_grad,
    mlx_vector_array,
  )
>()
external int mlx_closure_value_and_grad_apply(
  ffi.Pointer<mlx_vector_array> res_0,
  ffi.Pointer<mlx_vector_array> res_1,
  mlx_closure_value_and_grad cls,
  mlx_vector_array input,
);