Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Jul 13, 2024
1 parent 380b841 commit c15f291
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ext/LuxLibcuDNNExt/LuxLibcuDNNExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ end

function CRC.rrule(::typeof(LuxLib.batchnorm_cudnn), running_mean, running_var, scale,
bias, x, momentum, epsilon, t::Val{training}) where {training}
# TODO: Transition this to an error in the future
!training && @warn "`training=Val(false)` but gradient was called." maxlog=1
y, xmean, xivar = LuxLib.batchnorm_cudnn(
running_mean, running_var, scale, bias, x, momentum, epsilon, t)
Expand Down
4 changes: 2 additions & 2 deletions src/impl/fused_conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ function __∇conv_filter(
return ∇conv_filter(x, y, cdims)
end

function __conv_bias_act(x_::AbstractArray{xT}, weight_::AbstractArray{wT},
cdims::ConvDims, bias_::Optional{<:AbstractArray}, act::F) where {xT, wT, F}
function __conv_bias_act(x_::AbstractArray{xT}, weight_::AbstractArray{wT}, cdims::ConvDims,

Check warning on line 69 in src/impl/fused_conv.jl

View check run for this annotation

Codecov / codecov/patch

src/impl/fused_conv.jl#L69

Added line #L69 was not covered by tests
bias_::Optional{<:AbstractArray}, act::F) where {xT, wT, F}
dev = get_device_type((x_, weight_, bias_))
x, weight = __get_conv_input_weight(dev, xT, wT, x_, weight_)
bias = _ofeltype_array(eltype(x), bias_)

Check warning on line 73 in src/impl/fused_conv.jl

View check run for this annotation

Codecov / codecov/patch

src/impl/fused_conv.jl#L71-L73

Added lines #L71 - L73 were not covered by tests
Expand Down

0 comments on commit c15f291

Please sign in to comment.