Skip to content

Commit 65488a1

Browse files
Update conv.jl
σ only printed if different from identity, same with residual
1 parent 84b63e0 commit 65488a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/layers/conv.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,8 @@ end
11751175
function Base.show(io::IO, l::GMMConv)
11761176
(nin, ein), out = l.ch
11771177
print(io, "GMMConv((", nin, ",", ein, ")=>", out)
1178+
l.σ == identity || print(io, ", σ=", l.dense_s.σ)
11781179
print(io, ", K=", l.K)
1179-
print(io, ", σ=", l.σ)
1180+
l.residual==true || print(io, ", residual=", l.residual)
11801181
print(io, ")")
11811182
end

0 commit comments

Comments
 (0)