mlx_array_set_data function
Implementation
int mlx_array_set_data(
ffi.Pointer<mlx_array> arr,
ffi.Pointer<ffi.Void> data,
ffi.Pointer<ffi.Int> shape,
int dim,
mlx_dtype_ dtype,
) => _mlx_array_set_data(arr, data, shape, dim, dtype.value);
int mlx_array_set_data(
ffi.Pointer<mlx_array> arr,
ffi.Pointer<ffi.Void> data,
ffi.Pointer<ffi.Int> shape,
int dim,
mlx_dtype_ dtype,
) => _mlx_array_set_data(arr, data, shape, dim, dtype.value);