refactored mlx.linalg.norm bindings

This commit is contained in:
Gabrijel Boduljak 2023-12-22 04:35:02 +01:00 committed by Awni Hannun
parent 2831c77b33
commit 145a4d143d
2 changed files with 46 additions and 1232 deletions

File diff suppressed because it is too large Load Diff

8
python/src/overloaded.h Normal file
View File

@ -0,0 +1,8 @@
// Copyright © 2023 Apple Inc.
template <typename... Ts>
struct overloaded : Ts... {
using Ts::operator()...;
};
template <class... Ts>
overloaded(Ts...) -> overloaded<Ts...>;