Skip to main content

mlx_array_set_data

Function mlx_array_set_data 

Source
pub unsafe extern "C" fn mlx_array_set_data(
    arr: *mut mlx_array,
    data: *const c_void,
    shape: *const c_int,
    dim: c_int,
    dtype: mlx_dtype,
) -> c_int
Expand description

Set array to specified data and shape. @param arr Destination array. @param data A buffer which will be copied. @param shape Shape of the array. @param dim Number of dimensions (size of shape). @param dtype Type of array elements.