Skip to content

Commit 2d71e2a

Browse files
Merge pull request #183 from matsueushi/cuarray
Add comment for wrapper functions in CuArrays.jl
2 parents ac5101b + 08358de commit 2d71e2a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/activation.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
export σ, sigmoid, hardσ, hardsigmoid, hardtanh, relu, leakyrelu, relu6, rrelu, elu, gelu, swish, selu, celu, softplus, softsign, logσ,
22
logsigmoid, logcosh, mish, tanhshrink, softshrink, thresholdrelu, trelu, lisht
33

4+
## Activation functions
5+
#
6+
# Some of activation functions have its wrapper function for GPU in CuArrays.jl.
7+
# https://github.com/JuliaGPU/CuArrays.jl/issues/614
8+
49
"""
510
σ(x) = 1 / (1 + exp(-x))
611

test/activation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using NNlib, Test, Zygote
22

3-
ACTIVATION_FUNCTIONS = [σ, hardσ, hardtanh, relu, leakyrelu, relu6, rrelu, elu, gelu, celu, swish, lisht, selu, trelu, softplus, softsign, logcosh, mish, tanhshrink, softshrink];
3+
ACTIVATION_FUNCTIONS = [σ, hardσ, logσ, hardtanh, relu, leakyrelu, relu6, rrelu, elu, gelu, celu, swish, lisht, selu, trelu, softplus, softsign, logcosh, mish, tanhshrink, softshrink];
44

55
function test_value_float_precision_preserving(a)
66
@testset "$(a): " begin

0 commit comments

Comments
 (0)