Skip to content

Commit 66956cc

Browse files
committed
apply format
1 parent c2862ea commit 66956cc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/optimizers/gradient.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ function train_with_gradient!(
7373
trace[epoch] = C
7474
if verbose
7575
dtime = time() - start_time
76-
println("Epoch $epoch | Time = $(round(dtime, digits=1))s | Cost = $(round(C, digits=2))")
76+
println(
77+
"Epoch $epoch | Time = $(round(dtime, digits=1))s | Cost = $(round(C, digits=2))",
78+
)
7779
end
7880

7981
# evaluate if best model

src/optimizers/gradient_mpi.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ function train_with_gradient_mpi!(
107107
trace[epoch] = curr_C
108108
if verbose
109109
dtime = time() - start_time
110-
println("Epoch $epoch | Time = $(round(dtime, digits=1))s | Cost = $(round(curr_C, digits=2))")
110+
println(
111+
"Epoch $epoch | Time = $(round(dtime, digits=1))s | Cost = $(round(curr_C, digits=2))",
112+
)
111113
end
112114

113115
# evaluate if best model

0 commit comments

Comments
 (0)