mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 09:51:17 +08:00
13 lines
292 B
C
13 lines
292 B
C
![]() |
#pragma once
|
||
|
|
||
|
#include <pybind11/pybind11.h>
|
||
|
|
||
|
#include "mlx/array.h"
|
||
|
#include "python/src/utils.h"
|
||
|
|
||
|
namespace py = pybind11;
|
||
|
using namespace mlx::core;
|
||
|
|
||
|
array mlx_get_item(const array& src, const py::object& obj);
|
||
|
void mlx_set_item(array& src, const py::object& obj, const ScalarOrArray& v);
|