summaryrefslogtreecommitdiff
path: root/candle-metal-kernels/src/lib.rs
diff options
context:
space:
mode:
authorJuarez Bochi <jbochi@gmail.com>2024-01-10 12:27:17 -0500
committerGitHub <noreply@github.com>2024-01-10 18:27:17 +0100
commitae06cb74bb132913b4777cd119b915e665c013bb (patch)
tree55b679ad5f4ea42bb5d863ccca6483c925751dc7 /candle-metal-kernels/src/lib.rs
parenta897fda74e372ff0e08c86a5468124b51f5941a7 (diff)
downloadcandle-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.rs4
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 {