mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
@@ -33,7 +33,8 @@ bool is_unary(const Primitive& p) {
|
||||
typeid(p) == typeid(Sin) || typeid(p) == typeid(Sinh) ||
|
||||
typeid(p) == typeid(Square) || typeid(p) == typeid(Sqrt) ||
|
||||
typeid(p) == typeid(Tan) || typeid(p) == typeid(Tanh) ||
|
||||
typeid(p) == typeid(Expm1));
|
||||
typeid(p) == typeid(Expm1) || typeid(p) == typeid(Real) ||
|
||||
typeid(p) == typeid(Imag));
|
||||
}
|
||||
|
||||
bool is_binary(const Primitive& p) {
|
||||
|
||||
Reference in New Issue
Block a user