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

Network/rnd icm refactoring #52

Merged
merged 8 commits into from
Nov 23, 2021
Merged

Conversation

leonard-q
Copy link
Collaborator

🌟 Hello! Thanks for contributing JORLDY!

Checklist

Please check if you consider the following items.

  • [V] My code follows the style guidelines of this project contributing
  • [V] My code follows the naming convention of documentation
  • [V] I have commented my code, particularly in hard-to-understand areas
  • [V] My changes generate no new warnings or errors

Types of changes

Please describe the types of changes! (ex. Bugfix, New feature, Documentation, ...)
Refactoring

Test Configuration

  • OS: Linux Ubuntu
  • Python version: 3.9
  • Additional libraries:

Description

Please describe the details of your contribution
RND and ICM networks are refactorized.

@leonard-q leonard-q requested a review from ramanuzan as a code owner November 18, 2021 09:13
jorldy/core/network/icm.py Outdated Show resolved Hide resolved
jorldy/core/network/icm.py Outdated Show resolved Hide resolved

self.bn1_next = torch.nn.BatchNorm1d(D_hidden)
self.bn1, self.bn2, self.bn1_next = mlp_batch_norm(D_hidden, feature_size)
Copy link
Collaborator

Choose a reason for hiding this comment

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

self.batch_norm과 상관없이 해당 레이어들이 생성되는거 같아요.

아마 mlp_head 함수 때문인거 같은데요. mlp_head의 bn 들을 None으로 default로 잡아주고,
mlp_head를 self.batch_norm에 따라 다르게 실행하면 좋을 것 같습니다.

jorldy/core/network/rnd.py Outdated Show resolved Hide resolved
jorldy/core/network/rnd.py Outdated Show resolved Hide resolved
jorldy/core/network/rnd.py Outdated Show resolved Hide resolved
@ramanuzan ramanuzan merged commit 82430a9 into master Nov 23, 2021
@ramanuzan ramanuzan deleted the network/rnd_icm_refactoring branch November 23, 2021 04:43
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.

2 participants