浏览代码
Replace torch.detach().cpu().numpy() with a utils method (#4406)
Replace torch.detach().cpu().numpy() with a utils method (#4406)
* Replace torch.detach().cpu().numpy() with a utils method * Using item() in place of to_numpy() * more use of item() and additional tests/MLA-1734-demo-provider
GitHub
4 年前
当前提交
498934f9
共有 10 个文件被更改,包括 48 次插入 和 50 次删除
-
4ml-agents/mlagents/trainers/optimizer/torch_optimizer.py
-
12ml-agents/mlagents/trainers/policy/torch_policy.py
-
4ml-agents/mlagents/trainers/ppo/optimizer_torch.py
-
13ml-agents/mlagents/trainers/sac/optimizer_torch.py
-
21ml-agents/mlagents/trainers/tests/torch/test_bcmodule.py
-
9ml-agents/mlagents/trainers/tests/torch/test_reward_providers/test_curiosity.py
-
2ml-agents/mlagents/trainers/torch/components/bc/module.py
-
6ml-agents/mlagents/trainers/torch/components/reward_providers/curiosity_reward_provider.py
-
19ml-agents/mlagents/trainers/torch/components/reward_providers/gail_reward_provider.py
-
8ml-agents/mlagents/trainers/torch/utils.py
撰写
预览
正在加载...
取消
保存
Reference in new issue