Skip to content

Commit 409c11e

Browse files
committed
print some totals not in light_black
1 parent 3e9c481 commit 409c11e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/layers/show.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,13 @@ function _big_finale(io::IO, m)
7272
noncnt = _childarray_sum(_->1, m) - length(ps)
7373
if noncnt > 0
7474
nonparam = underscorise(_childarray_sum(length, m) - sum(length, ps))
75-
printstyled(io, " "^09, "# Total: ", length(ps), " trainable arrays, with ", pars, " parameters,\n"; color=:light_black)
76-
printstyled(io, " "^10, "# plus ", noncnt, " non-trainable, ", nonparam, " parameters, total size ", bytes; color=:light_black)
75+
printstyled(io, " "^09, "# Total: ", length(ps), " trainable arrays, with "; color=:light_black)
76+
println(io, pars, " parameters")
77+
printstyled(io, " "^10, "# plus ", noncnt, " non-trainable, ", nonparam, " parameters, summarysize "; color=:light_black)
78+
print(io, bytes)
7779
else
78-
printstyled(io, " "^19, "# Total: ", length(ps), " arrays, ", pars, " parameters, ", bytes; color=:light_black)
80+
printstyled(io, " "^19, "# Total: ", length(ps), " arrays, "; color=:light_black)
81+
print(io, pars, " parameters, ", bytes)
7982
end
8083
end
8184
end

0 commit comments

Comments
 (0)