mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-22 21:16:47 +08:00
refactored mlx.linalg.norm bindings
This commit is contained in:
parent
2831c77b33
commit
145a4d143d
File diff suppressed because it is too large
Load Diff
8
python/src/overloaded.h
Normal file
8
python/src/overloaded.h
Normal 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...>;
|
Loading…
Reference in New Issue
Block a user