mirror of
https://github.com/huggingface/candle.git
synced 2025-06-20 20:09:50 +00:00
Metal: support unary abs (#1503)
* Metal: support unary abs * cargo fmt
This commit is contained in:
@ -173,7 +173,10 @@ macro_rules! ops{
|
||||
}
|
||||
|
||||
pub mod unary {
|
||||
ops!(cos, sin, exp, sqr, sqrt, neg, log, gelu, ceil, floor, round, erf, gelu_erf, tanh, recip);
|
||||
ops!(
|
||||
cos, sin, exp, sqr, sqrt, neg, log, gelu, abs, ceil, floor, round, erf, gelu_erf, tanh,
|
||||
recip
|
||||
);
|
||||
}
|
||||
pub mod binary {
|
||||
ops!(add, sub, mul, div, min, max, eq, ne, le, lt, ge, gt);
|
||||
|
Reference in New Issue
Block a user