-
Notifications
You must be signed in to change notification settings - Fork 1
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
Dreamerクラスの実装 #47
Dreamerクラスの実装 #47
Conversation
…unnecessary docstrings
…unnecessary docstrings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
素晴らしいです。ほんの少し修正があるのでよろしくお願いします
src/models/dreamer.py
Outdated
device = self.agent.hidden.device | ||
dtype = self.agent.hidden.dtype |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
device = self.agent.hidden.device | |
dtype = self.agent.hidden.dtype | |
device = self.device | |
dtype = self.dtype |
src/models/abc/world.py
Outdated
@@ -45,7 +45,7 @@ def forward( | |||
next_obs: _tensor_or_any, | |||
*args: Any, | |||
**kwds: Any, | |||
) -> tuple[_dist_or_any, _dist_or_any, _tensor_or_any]: | |||
) -> tuple[_dist_or_any, _dist_or_any, _tensor_or_any, _tensor_or_any]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここの変更は何によって生まれたのでしょうか?
) -> tuple[_dist_or_any, _dist_or_any, _tensor_or_any, _tensor_or_any]: | |
) -> tuple[_dist_or_any, _dist_or_any, _tensor_or_any]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
記憶にない変更です...(??)
もとに戻しておきます
概要
#32 #33 TrainerとDreamerの実装ブランチです。
Dreamerのクラスの実装のみ完了しました。
変更内容
影響範囲
上記ファイル
trainer.pyはdreamer.pyに依存します
Submit前の確認項目
pytest
またはmake test
コマンドでローカルにテストしましたか?pre-commit run -a
またはmake format
コマンドでpre-commit
フックを実行しましたか?補足