Skip to content

Commit

Permalink
fix gat show
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Feb 12, 2022
1 parent be95629 commit cf1600e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/layers/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ end

function Base.show(io::IO, l::GATConv)
out_channel, in_channel = size(l.weight)
print(io, "GATConv(", in_channel, "=>", out_channel ÷ l.heads)
print(io, "GATConv(", in_channel, " => ", out_channel ÷ l.heads)
print(io, ", LeakyReLU(λ=", l.negative_slope)
print(io, "))")
end
Expand Down Expand Up @@ -439,8 +439,8 @@ end


function Base.show(io::IO, l::GATv2Conv)
out, in = size(l.weight_i)
print(io, "GATv2Conv(", in, "=>", out ÷ l.heads)
out, in = size(l.dense_i.weight)
print(io, "GATv2Conv(", in, " => ", out ÷ l.heads)
print(io, ", LeakyReLU(λ=", l.negative_slope)
print(io, "))")
end
Expand Down Expand Up @@ -654,7 +654,7 @@ end

function Base.show(io::IO, l::NNConv)
out, in = size(l.weight)
print(io, "NNConv( $in => $out")
print(io, "NNConv($in => $out")
print(io, ", aggr=", l.aggr)
print(io, ")")
end
Expand Down Expand Up @@ -776,7 +776,7 @@ end

function Base.show(io::IO, l::ResGatedGraphConv)
out_channel, in_channel = size(l.A)
print(io, "ResGatedGraphConv(", in_channel, "=>", out_channel)
print(io, "ResGatedGraphConv(", in_channel, " => ", out_channel)
l.σ == identity || print(io, ", ", l.σ)
print(io, ")")
end
Expand Down

0 comments on commit cf1600e

Please sign in to comment.