diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2023-09-21 06:19:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 06:19:10 +0100 |
commit | 7b26e513f15a0c7cd55ccfe48525bda1079427ce (patch) | |
tree | 6dabc58fb21552ddaf061c88406e82a4d3427ac3 /candle-core/src/tensor.rs | |
parent | ab1d40ea97b387f0dd05f77db37c840a4d624a08 (diff) | |
download | candle-7b26e513f15a0c7cd55ccfe48525bda1079427ce.tar.gz candle-7b26e513f15a0c7cd55ccfe48525bda1079427ce.tar.bz2 candle-7b26e513f15a0c7cd55ccfe48525bda1079427ce.zip |
Add the erf function. (#917)
Diffstat (limited to 'candle-core/src/tensor.rs')
-rw-r--r-- | candle-core/src/tensor.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/candle-core/src/tensor.rs b/candle-core/src/tensor.rs index eafd7002..9dccf2b5 100644 --- a/candle-core/src/tensor.rs +++ b/candle-core/src/tensor.rs @@ -490,6 +490,7 @@ impl Tensor { unary_op!(sqrt, Sqrt); unary_op!(gelu, Gelu); unary_op!(gelu_erf, GeluErf); + unary_op!(erf, Erf); unary_op!(relu, Relu); /// Retrieves the single scalar value hold in the tensor. If the tensor contains multiple |