mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-28 00:58:15 +08:00
allow conversion to dlpack (#1120)
This commit is contained in:
@@ -13,4 +13,6 @@ using namespace mlx::core;
|
||||
array nd_array_to_mlx(
|
||||
nb::ndarray<nb::ro, nb::c_contig, nb::device::cpu> nd_array,
|
||||
std::optional<Dtype> dtype);
|
||||
|
||||
nb::ndarray<nb::numpy> mlx_to_np_array(const array& a);
|
||||
nb::ndarray<> mlx_to_dlpack(const array& a);
|
||||
|
Reference in New Issue
Block a user