Skip to content

Commit bcafa8e

Browse files
prbzrggithub-actions[bot]
authored andcommitted
Format .jl files
1 parent d24e68e commit bcafa8e

6 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/exts/mlj_ext/core.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function get_logp̂x(
7474
st::NamedTuple,
7575
) where {T <: AbstractFloat, INPLACE}
7676
@warn "to compute by vectors, data should be a vector." maxlog = 1
77-
broadcast(
77+
return broadcast(
7878
function (x::AbstractVector{<:Real}, y::AbstractVector{<:Real})
7979
return first(inference(icnf, TestMode(), x, y, ps, st))
8080
end,

src/exts/mlj_ext/core_cond_icnf.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function CondICNFModel(;
2020
Optimisers.WeightDecay(; lambda = convert(eltype(icnf), 1.0e-2)),
2121
Optimisers.Adam(;
2222
eta = convert(eltype(icnf), 1.0e-3),
23-
beta = (convert(eltype(icnf), 9e-1), convert(eltype(icnf), 9.99e-1)),
23+
beta = (convert(eltype(icnf), 9.0e-1), convert(eltype(icnf), 9.99e-1)),
2424
epsilon = eps(eltype(icnf)),
2525
),
2626
),

src/exts/mlj_ext/core_icnf.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function ICNFModel(;
2020
Optimisers.WeightDecay(; lambda = convert(eltype(icnf), 1.0e-2)),
2121
Optimisers.Adam(;
2222
eta = convert(eltype(icnf), 1.0e-3),
23-
beta = (convert(eltype(icnf), 9e-1), convert(eltype(icnf), 9.99e-1)),
23+
beta = (convert(eltype(icnf), 9.0e-1), convert(eltype(icnf), 9.99e-1)),
2424
epsilon = eps(eltype(icnf)),
2525
),
2626
),

test/ci_tests/smoke_tests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Test.@testset verbose = true showtiming = true failfast = false "Smoke Tests" be
124124

125125
Test.@testset verbose = true showtiming = true failfast = false "$adtype on loss" for adtype in
126126
adtypes
127+
127128
Test.@test !isnothing(DifferentiationInterface.gradient(diff_loss, adtype, ps))
128129
Test.@test !isnothing(DifferentiationInterface.gradient(diff2_loss, adtype, r))
129130

test/ci_tests/speed_tests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Test.@testset verbose = true showtiming = true failfast = false "Speed Tests" begin
22
Test.@testset verbose = true showtiming = true failfast = false "$compute_mode" for compute_mode in
33
compute_modes
4+
45
@show compute_mode
56

67
ndata = 2^10

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ devices = MLDataDevices.AbstractDevice[MLDataDevices.cpu_device()]
4242
adtypes = ADTypes.AbstractADType[]
4343
compute_modes = ContinuousNormalizingFlows.ComputeMode[]
4444
if VIA_ZYGOTE
45-
adtypes = append!(adtypes, ADTypes.AbstractADType[ADTypes.AutoZygote(),])
45+
adtypes = append!(adtypes, ADTypes.AbstractADType[ADTypes.AutoZygote()])
4646
compute_modes = append!(
4747
compute_modes,
4848
ContinuousNormalizingFlows.ComputeMode[
@@ -53,7 +53,7 @@ if VIA_ZYGOTE
5353
)
5454
end
5555
if VIA_FORWARDDIFF
56-
adtypes = append!(adtypes, ADTypes.AbstractADType[ADTypes.AutoForwardDiff(),])
56+
adtypes = append!(adtypes, ADTypes.AbstractADType[ADTypes.AutoForwardDiff()])
5757
compute_modes = append!(
5858
compute_modes,
5959
ContinuousNormalizingFlows.ComputeMode[

0 commit comments

Comments
 (0)