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

Implement args/kwargs for init of norm_layers and activation #788

Merged
merged 6 commits into from
Dec 27, 2022

Conversation

janofsun
Copy link
Contributor

As mentioned in #770 , I have fixed the mismatch of args between the Net and MLP. Also, in order to initialize the norm_layers and activations, norm_args and act_args are added to the miniblock and related classes.

  • I have marked all applicable categories:
    • exception-raising fix
    • algorithm implementation fix
    • documentation modification
    • new feature
  • I have reformatted the code using make format (required)
  • I have checked the code using make commit-checks (required)
  • If applicable, I have mentioned the relevant/related issue(s)
  • If applicable, I have listed every items in this Pull Request below

@codecov-commenter
Copy link

codecov-commenter commented Dec 25, 2022

Codecov Report

Merging #788 (01ed8b7) into master (1037627) will decrease coverage by 0.19%.
The diff coverage is 52.00%.

@@            Coverage Diff             @@
##           master     #788      +/-   ##
==========================================
- Coverage   91.09%   90.89%   -0.20%     
==========================================
  Files          73       73              
  Lines        5088     5109      +21     
==========================================
+ Hits         4635     4644       +9     
- Misses        453      465      +12     
Flag Coverage Δ
unittests 90.89% <52.00%> (-0.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tianshou/utils/net/common.py 78.68% <52.00%> (-4.28%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Trinkle23897 Trinkle23897 linked an issue Dec 25, 2022 that may be closed by this pull request
Trinkle23897
Trinkle23897 previously approved these changes Dec 27, 2022
@Trinkle23897 Trinkle23897 merged commit 774d3d8 into thu-ml:master Dec 27, 2022
BFAnas pushed a commit to BFAnas/tianshou that referenced this pull request May 5, 2024
)

As mentioned in thu-ml#770 , I have fixed the mismatch of args between the Net
and MLP. Also, in order to initialize the norm_layers and activations,
norm_args and act_args are added to the miniblock and related classes.
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.

Args of Net and MLP mismatch
3 participants