From 7b119f59fe83ff60da16aab36c5458bd067ea126 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Fri, 4 Sep 2026 03:20:27 -0400 Subject: [PATCH] Apply current Runic formatting Apply Runic 1.10's canonical formatting to the files that currently fail the repository-wide format check. Co-Authored-By: Chris Rackauckas Co-Authored-By: OpenAI Codex Agent-Harness: Codex CLI 0.151.0 Agent-Model: gpt-5.6-sol Agent-Session: local session ID 01a0598f-11b9-72d1-91d9-b2fbb186557d --- src/MLP.jl | 10 +++---- test/reflect.jl | 2 +- test/shared/DeepBSDE_Han.jl | 54 ++++++++++++++++++------------------- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/MLP.jl b/src/MLP.jl index f197f45..4bf0d16 100644 --- a/src/MLP.jl +++ b/src/MLP.jl @@ -235,11 +235,11 @@ function _ml_picard_mlt( NUM_THREADS = Threads.nthreads() tasks = [ Threads.@spawn( - _ml_picard_call( - M, L, K, x, s, t, mc_sample!, g, f, verbose, - NUM_THREADS, thread_id, prob, neumann_bc - ) - ) for thread_id in 1:NUM_THREADS + _ml_picard_call( + M, L, K, x, s, t, mc_sample!, g, f, verbose, + NUM_THREADS, thread_id, prob, neumann_bc + ) + ) for thread_id in 1:NUM_THREADS ] # first level diff --git a/test/reflect.jl b/test/reflect.jl index 3afb76b..208382c 100644 --- a/test/reflect.jl +++ b/test/reflect.jl @@ -41,7 +41,7 @@ if CUDA.functional() @testset "testing equivalence cpu gpu" begin batch_size = 1000 a = repeat(X0[:], 1, batch_size) - b = a + 2f0 .* randn(Float32, size(a)) + b = a + 2.0f0 .* randn(Float32, size(a)) a = hcat(X0, a) |> gpu b = hcat(X1, b) |> gpu s = -1.0f0 diff --git a/test/shared/DeepBSDE_Han.jl b/test/shared/DeepBSDE_Han.jl index 1548359..8d74b01 100644 --- a/test/shared/DeepBSDE_Han.jl +++ b/test/shared/DeepBSDE_Han.jl @@ -42,10 +42,10 @@ end # sub-neural network approximating the spatial gradients at time point σᵀ∇u = [ Flux.Chain( - Dense(d, hls, relu), - Dense(hls, hls, relu), - Dense(hls, d) - ) for i in 1:time_steps + Dense(d, hls, relu), + Dense(hls, hls, relu), + Dense(hls, d) + ) for i in 1:time_steps ] alg = DeepBSDE(u0, σᵀ∇u, opt = opt) @@ -94,10 +94,10 @@ end # sub-neural network approximating the spatial gradients at time point σᵀ∇u = [ Flux.Chain( - Dense(d, hls, relu), - Dense(hls, hls, relu), - Dense(hls, d) - ) for i in 1:time_steps + Dense(d, hls, relu), + Dense(hls, hls, relu), + Dense(hls, d) + ) for i in 1:time_steps ] alg = DeepBSDE(u0, σᵀ∇u, opt = opt) @@ -145,11 +145,11 @@ end ) σᵀ∇u = [ Flux.Chain( - Dense(d, hls, relu), - Dense(hls, hls, relu), - Dense(hls, hls, relu), - Dense(hls, d) - ) for i in 1:time_steps + Dense(d, hls, relu), + Dense(hls, hls, relu), + Dense(hls, hls, relu), + Dense(hls, d) + ) for i in 1:time_steps ] alg = DeepBSDE(u0, σᵀ∇u, opt = opt) @@ -198,10 +198,10 @@ end # sub-neural network approximating the spatial gradients at time point σᵀ∇u = [ Flux.Chain( - Dense(d, hls, relu), - Dense(hls, hls, relu), - Dense(hls, d) - ) for i in 1:time_steps + Dense(d, hls, relu), + Dense(hls, hls, relu), + Dense(hls, d) + ) for i in 1:time_steps ] alg = DeepBSDE(u0, σᵀ∇u, opt = opt) @@ -252,11 +252,11 @@ end # sub-neural network approximating the spatial gradients at time point σᵀ∇u = [ Flux.Chain( - Dense(d, hls, relu), - Dense(hls, hls, relu), - Dense(hls, hls, relu), - Dense(hls, d) - ) for i in 1:time_steps + Dense(d, hls, relu), + Dense(hls, hls, relu), + Dense(hls, hls, relu), + Dense(hls, d) + ) for i in 1:time_steps ] alg = DeepBSDE(u0, σᵀ∇u, opt = opt) @@ -339,11 +339,11 @@ end σᵀ∇u = [ Flux.Chain( - Dense(d, hls, relu), - Dense(hls, hls, relu), - Dense(hls, hls, relu), - Dense(hls, d) - ) for i in 1:time_steps + Dense(d, hls, relu), + Dense(hls, hls, relu), + Dense(hls, hls, relu), + Dense(hls, d) + ) for i in 1:time_steps ] alg = DeepBSDE(u0, σᵀ∇u, opt = opt)