mlx_softmax_axis function

  1. @Native<Int Function(Pointer<mlx_array>, mlx_array, Int, Bool, mlx_stream)>(ffi.Pointer<mlx_array>, mlx_array, ffi.Int, ffi.Bool, mlx_stream)>()
int mlx_softmax_axis(
  1. Pointer<mlx_array> res,
  2. mlx_array a,
  3. int axis,
  4. bool precise,
  5. mlx_stream s,
)

Implementation

@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<mlx_array>,
    mlx_array,
    ffi.Int,
    ffi.Bool,
    mlx_stream,
  )
>()
external int mlx_softmax_axis(
  ffi.Pointer<mlx_array> res,
  mlx_array a,
  int axis,
  bool precise,
  mlx_stream s,
);