Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support normalization_resolver in MLP #4951

Merged
merged 7 commits into from
Jul 11, 2022
Merged

Support normalization_resolver in MLP #4951

merged 7 commits into from
Jul 11, 2022

Conversation

lightaime
Copy link
Contributor

This pull request added support for the normalization_resolver in MLP.

@codecov
Copy link

codecov bot commented Jul 9, 2022

Codecov Report

Merging #4951 (d3d8fd5) into master (5bc03a0) will decrease coverage by 1.94%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4951      +/-   ##
==========================================
- Coverage   84.66%   82.71%   -1.95%     
==========================================
  Files         330      330              
  Lines       17890    17891       +1     
==========================================
- Hits        15146    14799     -347     
- Misses       2744     3092     +348     
Impacted Files Coverage Δ
torch_geometric/nn/models/mlp.py 98.61% <100.00%> (-1.39%) ⬇️
torch_geometric/nn/models/dimenet_utils.py 0.00% <0.00%> (-75.52%) ⬇️
torch_geometric/nn/models/dimenet.py 14.51% <0.00%> (-53.00%) ⬇️
torch_geometric/nn/conv/utils/typing.py 81.25% <0.00%> (-17.50%) ⬇️
torch_geometric/loader/neighbor_loader.py 85.62% <0.00%> (-9.38%) ⬇️
torch_geometric/nn/inits.py 67.85% <0.00%> (-7.15%) ⬇️
torch_geometric/nn/resolver.py 88.00% <0.00%> (-6.00%) ⬇️
torch_geometric/testing/decorators.py 96.66% <0.00%> (-3.34%) ⬇️
torch_geometric/testing/feature_store.py 97.22% <0.00%> (-2.78%) ⬇️
torch_geometric/io/tu.py 93.90% <0.00%> (-2.44%) ⬇️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5bc03a0...d3d8fd5. Read the comment docs.

@lightaime lightaime changed the title Support normalization_resolver in MLP Support normalization_resolver in MLP Jul 9, 2022
act_first = act_first or kwargs.get("relu_first", False)
batch_norm = kwargs.get("batch_norm", None)
if batch_norm is not None and isinstance(batch_norm, bool):
warnings.warn("Argument `batch_norm` will be deprecated, "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if we should decide on a version in which it will be depreciated and note that here? WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure when we want to fully deprecate it though. @rusty1s any idea on this?

CHANGELOG.md Outdated Show resolved Hide resolved
torch_geometric/nn/models/mlp.py Outdated Show resolved Hide resolved
torch_geometric/nn/models/mlp.py Outdated Show resolved Hide resolved
torch_geometric/nn/models/mlp.py Show resolved Hide resolved
lightaime and others added 4 commits July 10, 2022 21:44
Co-authored-by: Matthias Fey <[email protected]>
Co-authored-by: Matthias Fey <[email protected]>
@lightaime
Copy link
Contributor Author

lightaime commented Jul 10, 2022

@rusty1s
Copy link
Member

rusty1s commented Jul 11, 2022

Thank you @lightaime. Looking forward to the follow-up PR.

@rusty1s rusty1s merged commit 64d44fe into master Jul 11, 2022
@rusty1s rusty1s deleted the resolve_norm_mlp branch July 11, 2022 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants