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