mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 12:06:42 +08:00
removed IntOrIntVec
This commit is contained in:
parent
34108e780c
commit
bd1a11bef7
@ -3198,7 +3198,8 @@ void init_ops(py::module_& m) {
|
||||
"tensordot",
|
||||
[](const array& a,
|
||||
const array& b,
|
||||
const IntOrIntVec& dims,
|
||||
const std::variant<std::monostate, int, std::vector<std::vector<int>>>&
|
||||
dims,
|
||||
StreamOrDevice s) {
|
||||
if (std::holds_alternative<std::monostate>(dims)) {
|
||||
return tensordot(a, b, 2, s);
|
||||
|
@ -15,8 +15,6 @@ namespace py = pybind11;
|
||||
using namespace mlx::core;
|
||||
|
||||
using IntOrVec = std::variant<std::monostate, int, std::vector<int>>;
|
||||
using IntOrIntVec =
|
||||
std::variant<std::monostate, int, std::vector<std::vector<int>>>;
|
||||
using ScalarOrArray = std::
|
||||
variant<py::bool_, py::int_, py::float_, std::complex<float>, py::object>;
|
||||
static constexpr std::monostate none{};
|
||||
|
Loading…
Reference in New Issue
Block a user