Skip to content

fix: forward custom initializers to projection Dense layers - #755

Open
sanketpatel32 wants to merge 4 commits into
JuliaGraphs:masterfrom
sanketpatel32:devin/1795971244-projection-initializers
Open

sanketpatel32 wants to merge 4 commits into
JuliaGraphs:masterfrom
sanketpatel32:devin/1795971244-projection-initializers

Conversation

@sanketpatel32

Copy link
Copy Markdown

Summary

Fixes #747.

Forward the layer initializer into the internal projection Dense layers:

  • Flux GATConv: dense_x and dense_e
  • Flux GMMConv: dense_x
  • GNNLux GMMConv: dense_x

This matches the existing GATv2Conv behavior and ensures a custom initializer such as init = Flux.ones32 also controls the projection weights.

Regression test items cover the issue's ones-initializer snippets, including dense_x.weight/dense_e.weight, and check the default initialization path. The affected frontend package versions are bumped per the repository guidelines.

Note: forwarding init_weight changes GNNLux GMMConv's projection initialization. It no longer uses Lux Dense's kaiming_uniform fallback: with default arguments it now uses the documented glorot_uniform, and with a custom init_weight it uses that initializer.

Tests

Run on Julia 1.13.4:

  • julia --project=GraphNeuralNetworks -e 'using Pkg; Pkg.test("GraphNeuralNetworks")' — passed
  • julia --project=GNNLux -e 'using Pkg; Pkg.test("GNNLux")' — passed

AI assistance

Prepared with assistance from Devin (Cognition AI).

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.

Custom initializer not applied to the projection Dense in Flux GATConv, Flux GMMConv and GNNLux GMMConv

1 participant