Skip to content

Commit 3b455af

Browse files
committed
rm comments
1 parent 368cec2 commit 3b455af

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

@@ -332,10 +330,8 @@ ChainRulesCore.@non_differentiable conv_transpose_dims(::Any, ::Any)
332330

333331
function (c::ConvTranspose)(x::AbstractArray)
334332
_size_check(c, x, ndims(x)-1 => _channels_in(c))
335-
# σ = NNlib.fast_act(c.σ, x)
336333
cdims = conv_transpose_dims(c, x)
337334
xT = _match_eltype(c, x)
338-
# σ.(∇conv_data(xT, c.weight, cdims) .+ conv_reshape_bias(c))
339335
NNlib.bias_act!(c.σ, ∇conv_data(xT, c.weight, cdims), conv_reshape_bias(c))
340336
end
341337

@@ -475,10 +471,8 @@ ChainRulesCore.@non_differentiable crosscor_dims(::Any, ::Any)
475471

476472
function (c::CrossCor)(x::AbstractArray)
477473
_size_check(c, x, ndims(x)-1 => _channels_in(c))
478-
# σ = NNlib.fast_act(c.σ, x)
479474
cdims = crosscor_dims(c, x)
480475
xT = _match_eltype(c, x)
481-
# σ.(crosscor(xT, c.weight, cdims) .+ conv_reshape_bias(c))
482476
NNlib.bias_act!(c.σ, crosscor(xT, c.weight, cdims), conv_reshape_bias(c))
483477
end
484478

0 commit comments

Comments
 (0)