Skip to content

Commit

Permalink
Merge pull request #579 from avik-pal/patch-1
Browse files Browse the repository at this point in the history
Update the activation inplace for cudnn
  • Loading branch information
darsnack authored May 1, 2024
2 parents 6d168b4 + 01e127e commit d0da256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/NNlibCUDACUDNNExt/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function conv_bias_act!(y::DenseCuArray{T}, x::DenseCuArray{T}, w::DenseCuArray{
activation === NNlib.relu ? CUDNN_ACTIVATION_RELU : CUDNN_ACTIVATION_IDENTITY)
cudnnConvolutionForward!(y, w, x, d; z, bias, activation, alpha, beta)
if activation === CUDNN_ACTIVATION_IDENTITY && σ (nothing, identity)
y = σ.(y)
@. y = σ(y)
end
return y
end
Expand Down

0 comments on commit d0da256

Please sign in to comment.