-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix planar error #414
fix planar error #414
Conversation
src/layers/base_layer.jl
Outdated
@inline function apply_act(::typeof(identity), x::Any) | ||
x | ||
end | ||
|
||
@inline function apply_act(activation::Any, x::Number) | ||
activation(x) | ||
end | ||
|
||
@inline function apply_act(activation::Any, x::AbstractArray) | ||
activation.(x) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
@inline function apply_act(::typeof(identity), x::Any) | |
x | |
end | |
@inline function apply_act(activation::Any, x::Number) | |
activation(x) | |
end | |
@inline function apply_act(activation::Any, x::AbstractArray) | |
activation.(x) | |
end | |
@inline function apply_act(::typeof(identity), x::Any) | |
x | |
end | |
@inline function apply_act(activation::Any, x::Number) | |
activation(x) | |
end | |
@inline function apply_act(activation::Any, x::AbstractArray) | |
activation.(x) | |
end |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #414 +/- ##
=======================================
Coverage 85.45% 85.45%
=======================================
Files 15 15
Lines 674 674
=======================================
Hits 576 576
Misses 98 98 ☔ View full report in Codecov by Sentry. |
src/layers/base_layer.jl
Outdated
@inline function apply_act(::typeof(identity), x::Union{Number, AbstractArray}) | ||
x | ||
end | ||
|
||
@inline function apply_act(activation::Function, x::Number) | ||
activation(x) | ||
end | ||
|
||
@inline function apply_act(activation::Function, x::AbstractArray) | ||
activation.(x) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
@inline function apply_act(::typeof(identity), x::Union{Number, AbstractArray}) | |
x | |
end | |
@inline function apply_act(activation::Function, x::Number) | |
activation(x) | |
end | |
@inline function apply_act(activation::Function, x::AbstractArray) | |
activation.(x) | |
end | |
@inline function apply_act(::typeof(identity), x::Union{Number, AbstractArray}) | |
x | |
end | |
@inline function apply_act(activation::Function, x::Number) | |
activation(x) | |
end | |
@inline function apply_act(activation::Function, x::AbstractArray) | |
activation.(x) | |
end |
Benchmark resultJudge resultBenchmark Report for /home/runner/work/ContinuousNormalizingFlows.jl/ContinuousNormalizingFlows.jlJob Properties
ResultsA ratio greater than
Benchmark Group ListHere's a list of all the benchmark groups executed by this job:
Julia versioninfoTarget
Baseline
Target resultBenchmark Report for /home/runner/work/ContinuousNormalizingFlows.jl/ContinuousNormalizingFlows.jlJob Properties
ResultsBelow is a table of this job's results, obtained by running the benchmarks.
Benchmark Group ListHere's a list of all the benchmark groups executed by this job:
Julia versioninfo
Baseline resultBenchmark Report for /home/runner/work/ContinuousNormalizingFlows.jl/ContinuousNormalizingFlows.jlJob Properties
ResultsBelow is a table of this job's results, obtained by running the benchmarks.
Benchmark Group ListHere's a list of all the benchmark groups executed by this job:
Julia versioninfo
Runtime information
|
No description provided.