mlx_ones function
int
mlx_ones(
- Pointer<
mlx_array> res, - Pointer<
Int> shape, - int shape_num,
- mlx_dtype_ dtype,
- mlx_stream s,
Implementation
int mlx_ones(
ffi.Pointer<mlx_array> res,
ffi.Pointer<ffi.Int> shape,
int shape_num,
mlx_dtype_ dtype,
mlx_stream s,
) => _mlx_ones(res, shape, shape_num, dtype.value, s);