angelos's commit files

This commit is contained in:
Angelos Katharopoulos
2023-11-29 10:42:59 -08:00
parent 8ca7f9e8e9
commit d1f86272a2
56 changed files with 12350 additions and 0 deletions

12
python/src/metal.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include <pybind11/pybind11.h>
#include "mlx/backend/metal/metal.h"
namespace py = pybind11;
using namespace mlx::core;
void init_metal(py::module_& m) {
py::module_ metal = m.def_submodule("metal", "mlx.metal");
metal.def("is_available", &metal::is_available);
}