Skip to content

GNNLux: implement LuxCore.parameterlength for GATConv and GATv2Conv - #758

Open
priyanka4271 wants to merge 1 commit into
JuliaGraphs:masterfrom
priyanka4271:gatconv-parameterlength
Open

priyanka4271 wants to merge 1 commit into
JuliaGraphs:masterfrom
priyanka4271:gatconv-parameterlength

Conversation

@priyanka4271

Copy link
Copy Markdown

Implements explicit LuxCore.parameterlength methods for GATConv and GATv2Conv in GNNLux/src/layers/conv.jl (resolving the existing ##TODO: parameterlength comments), computing the parameter count directly from the layer configuration instead of falling back to the default implementation.

Changes

  • Added LuxCore.parameterlength(::GATConv) and LuxCore.parameterlength(::GATv2Conv) accounting for heads, concat, use_bias, and edge features (ein > 0).
  • Added @testitem "GATConv and GATv2Conv parameterlength" in GNNLux/test/layers/conv.jl covering all combinations of the tested values of heads, concat, use_bias, and ein (32 cases per run).

Testing

Pkg.test("GNNLux") on Julia 1.13.4: 237 passed, 2 broken, 239 total. LuxTestUtils logged "No backends to test. Skipping test..." warnings during the run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant