-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remove dummy net code #123
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #123 +/- ##
==========================================
- Coverage 84.94% 83.50% -1.44%
==========================================
Files 29 32 +3
Lines 1906 2092 +186
==========================================
+ Hits 1619 1747 +128
- Misses 287 345 +58
Continue to review full report at Codecov.
|
Why not to keep the original names |
Good idea, solved in new commit. |
net = Net(args.layer_num, args.state_shape, device=args.device) | ||
actor = Actor( | ||
args.layer_num, args.state_shape, args.action_shape, | ||
net, args.action_shape, | ||
args.max_action, args.device | ||
).to(args.device) | ||
actor_optim = torch.optim.Adam(actor.parameters(), lr=args.actor_lr) | ||
critic1 = Critic( | ||
args.layer_num, args.state_shape, args.action_shape, args.device | ||
).to(args.device) | ||
net = Net(args.layer_num, args.state_shape, | ||
args.action_shape, concat=True, device=args.device) | ||
critic1 = Critic(net, args.device).to(args.device) | ||
critic1_optim = torch.optim.Adam(critic1.parameters(), lr=args.critic_lr) | ||
critic2 = Critic( | ||
args.layer_num, args.state_shape, args.action_shape, args.device | ||
).to(args.device) | ||
critic2 = Critic(net, args.device).to(args.device) |
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.
Actually, TD3 cannot support share-critic, which causes #209.
* remove dummy net; delete two files * split code to have backbone and head * rename class * change torch.float to torch.float32 * use flatten(1) instead of view(batch, -1) * remove dummy net in docs * bugfix for rnn * fix cuda error * minor fix of docs * do not change the example code in dqn tutorial, since it is for demonstration Co-authored-by: Trinkle23897 <463003665@qq.com>
Less important but also useful: