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

polish(zjow): impala cnn encoder refactor. #378

Merged
merged 8 commits into from
Jun 16, 2022

Conversation

zjowowen
Copy link
Collaborator

1, vac encoder configuration polish.
2, encoder file polish.
3, enrich torch utils.
4, add relative unittest.

@zjowowen zjowowen added the refactor refactor module or component label Jun 16, 2022
@zjowowen zjowowen self-assigned this Jun 16, 2022
assert actor_head_hidden_size == critic_head_hidden_size, \
"actor and critic network head should have same size."
if encoder:
if type(encoder) is torch.nn.Module:
Copy link
Member

Choose a reason for hiding this comment

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

if isinstance(encoder, torch.nn.Module):

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed.

"one encoder instance is not allowed \
to be assigned to actor critic that not sharing encoders."
)
else:
Copy link
Member

Choose a reason for hiding this comment

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

where is you encoder assignment branch, and add corresponding unittest

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed.
unittest for encoder assignment is added.

@PaParaZz1 PaParaZz1 merged commit ce286cd into opendilab:main Jun 16, 2022
@zjowowen zjowowen deleted the impala-encoder branch August 12, 2022 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor refactor module or component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants