Skip to content

Commit 9690dfb

Browse files
committed
reduce indent
1 parent dc5eca2 commit 9690dfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/layers/show.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ function _big_finale(io::IO, m)
6868
noncnt = _childarray_sum(_->1, m) - length(ps)
6969
if noncnt > 0
7070
nonparam = underscorise(_childarray_sum(length, m) - sum(length, ps))
71-
printstyled(io, " "^19, "# Total: ", length(ps), " trainable arrays, ", pars, " parameters,\n"; color=:light_black)
72-
printstyled(io, " "^20, "# plus ", noncnt, " non-trainable, ", nonparam, " parameters, total size ", bytes; color=:light_black)
71+
printstyled(io, " "^09, "# Total: ", length(ps), " trainable arrays, with ", pars, " parameters,\n"; color=:light_black)
72+
printstyled(io, " "^10, "# plus ", noncnt, " non-trainable, ", nonparam, " parameters, total size ", bytes; color=:light_black)
7373
else
7474
printstyled(io, " "^19, "# Total: ", length(ps), " arrays, ", pars, " parameters, ", bytes; color=:light_black)
7575
end
7676
end
7777
end
7878

79-
_childarray_sum(f, x::AbstractArray) = f(x) # count includes non-trainable arrays excluded from params
79+
_childarray_sum(f, x::AbstractArray) = f(x)
8080
_childarray_sum(f, x) = isleaf(x) ? 0 : sum(y -> _childarray_sum(f, y), Functors.children(x))
8181

8282
# utility functions

0 commit comments

Comments
 (0)