Skip to content

Commit 80bf96a

Browse files
Merge pull request #129 from CarloLucibello/cl/gatfix
fix GATv2Conv show
2 parents be95629 + cf1600e commit 80bf96a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/layers/conv.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ end
338338

339339
function Base.show(io::IO, l::GATConv)
340340
out_channel, in_channel = size(l.weight)
341-
print(io, "GATConv(", in_channel, "=>", out_channel ÷ l.heads)
341+
print(io, "GATConv(", in_channel, " => ", out_channel ÷ l.heads)
342342
print(io, ", LeakyReLU(λ=", l.negative_slope)
343343
print(io, "))")
344344
end
@@ -439,8 +439,8 @@ end
439439

440440

441441
function Base.show(io::IO, l::GATv2Conv)
442-
out, in = size(l.weight_i)
443-
print(io, "GATv2Conv(", in, "=>", out ÷ l.heads)
442+
out, in = size(l.dense_i.weight)
443+
print(io, "GATv2Conv(", in, " => ", out ÷ l.heads)
444444
print(io, ", LeakyReLU(λ=", l.negative_slope)
445445
print(io, "))")
446446
end
@@ -654,7 +654,7 @@ end
654654

655655
function Base.show(io::IO, l::NNConv)
656656
out, in = size(l.weight)
657-
print(io, "NNConv( $in => $out")
657+
print(io, "NNConv($in => $out")
658658
print(io, ", aggr=", l.aggr)
659659
print(io, ")")
660660
end
@@ -776,7 +776,7 @@ end
776776

777777
function Base.show(io::IO, l::ResGatedGraphConv)
778778
out_channel, in_channel = size(l.A)
779-
print(io, "ResGatedGraphConv(", in_channel, "=>", out_channel)
779+
print(io, "ResGatedGraphConv(", in_channel, " => ", out_channel)
780780
l.σ == identity || print(io, ", ", l.σ)
781781
print(io, ")")
782782
end

0 commit comments

Comments
 (0)