diff options
author | Juarez Bochi <jbochi@gmail.com> | 2024-01-10 12:27:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 18:27:17 +0100 |
commit | ae06cb74bb132913b4777cd119b915e665c013bb (patch) | |
tree | 55b679ad5f4ea42bb5d863ccca6483c925751dc7 /candle-metal-kernels/src/lib.rs | |
parent | a897fda74e372ff0e08c86a5468124b51f5941a7 (diff) | |
download | candle-ae06cb74bb132913b4777cd119b915e665c013bb.tar.gz candle-ae06cb74bb132913b4777cd119b915e665c013bb.tar.bz2 candle-ae06cb74bb132913b4777cd119b915e665c013bb.zip |
Add relu kernel for metal (#1488)
* Add relu kernel for metal
* Copy error messages proposed in #1491
* Revert non relu changes
* Fix name changes
* Fix the last of us (:
* Fix copy and paste mistakes
* Fix typo
* Revert order changes
* Revert order change
* Add deleted functions back
* Run rustfmt
Diffstat (limited to 'candle-metal-kernels/src/lib.rs')
-rw-r--r-- | candle-metal-kernels/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/candle-metal-kernels/src/lib.rs b/candle-metal-kernels/src/lib.rs index 5d34f61a..c872dc60 100644 --- a/candle-metal-kernels/src/lib.rs +++ b/candle-metal-kernels/src/lib.rs @@ -174,8 +174,8 @@ macro_rules! ops{ pub mod unary { ops!( - cos, sin, exp, sqr, sqrt, neg, log, gelu, abs, ceil, floor, round, erf, gelu_erf, tanh, - recip + cos, sin, exp, sqr, sqrt, neg, log, gelu, abs, ceil, floor, relu, round, erf, gelu_erf, + tanh, recip ); } pub mod binary { |