mlx_array_new_data function

mlx_array mlx_array_new_data(
  1. Pointer<Void> data,
  2. Pointer<Int> shape,
  3. int dim,
  4. mlx_dtype_ dtype,
)

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);