Skip to content

Commit 1a3e33e

Browse files
committed
rm comments
1 parent cbd33fa commit 1a3e33e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/layers/conv.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,8 @@ ChainRulesCore.@non_differentiable conv_dims(::Any, ::Any)
196196

197197
function (c::Conv)(x::AbstractArray)
198198
_size_check(c, x, ndims(x)-1 => _channels_in(c))
199-
# σ = NNlib.fast_act(c.σ, x)
200199
cdims = conv_dims(c, x)
201200
xT = _match_eltype(c, x)
202-
# σ.(conv(xT, c.weight, cdims) .+ conv_reshape_bias(c))
203201
NNlib.bias_act!(c.σ, conv(xT, c.weight, cdims), conv_reshape_bias(c))
204202
end
205203

@@ -333,10 +331,8 @@ ChainRulesCore.@non_differentiable conv_transpose_dims(::Any, ::Any)
333331

334332
function (c::ConvTranspose)(x::AbstractArray)
335333
_size_check(c, x, ndims(x)-1 => _channels_in(c))
336-
# σ = NNlib.fast_act(c.σ, x)
337334
cdims = conv_transpose_dims(c, x)
338335
xT = _match_eltype(c, x)
339-
# σ.(∇conv_data(xT, c.weight, cdims) .+ conv_reshape_bias(c))
340336
NNlib.bias_act!(c.σ, ∇conv_data(xT, c.weight, cdims), conv_reshape_bias(c))
341337
end
342338

@@ -476,10 +472,8 @@ ChainRulesCore.@non_differentiable crosscor_dims(::Any, ::Any)
476472

477473
function (c::CrossCor)(x::AbstractArray)
478474
_size_check(c, x, ndims(x)-1 => _channels_in(c))
479-
# σ = NNlib.fast_act(c.σ, x)
480475
cdims = crosscor_dims(c, x)
481476
xT = _match_eltype(c, x)
482-
# σ.(crosscor(xT, c.weight, cdims) .+ conv_reshape_bias(c))
483477
NNlib.bias_act!(c.σ, crosscor(xT, c.weight, cdims), conv_reshape_bias(c))
484478
end
485479

0 commit comments

Comments
 (0)