7d2a67412daa0abb3ce2339a8f716a4ca51791e4,src/garage/torch/algos/vpg.py,VPG,_compute_kl_constraint,#VPG#Any#,366
Before Change
with torch.no_grad():
old_dist = self._old_policy(obs)
new_dist = self.policy(obs)
kl_constraint = torch.distributions.kl.kl_divergence(
old_dist, new_dist)
After Change
with torch.no_grad():
old_dist = self._old_policy(obs)[0]
new_dist = self.policy(obs)[0]
kl_constraint = torch.distributions.kl.kl_divergence(
old_dist, new_dist)
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 3
Instances
Project Name: rlworkgroup/garage
Commit Name: 7d2a67412daa0abb3ce2339a8f716a4ca51791e4
Time: 2020-06-11
Author: 41180126+krzentner@users.noreply.github.com
File Name: src/garage/torch/algos/vpg.py
Class Name: VPG
Method Name: _compute_kl_constraint
Project Name: rlworkgroup/garage
Commit Name: 7d2a67412daa0abb3ce2339a8f716a4ca51791e4
Time: 2020-06-11
Author: 41180126+krzentner@users.noreply.github.com
File Name: tests/garage/torch/policies/test_gaussian_mlp_policy.py
Class Name: TestGaussianMLPPolicies
Method Name: test_get_actions
Project Name: rlworkgroup/garage
Commit Name: 7d2a67412daa0abb3ce2339a8f716a4ca51791e4
Time: 2020-06-11
Author: 41180126+krzentner@users.noreply.github.com
File Name: tests/garage/torch/algos/test_sac.py
Class Name:
Method Name: testActorLoss
Project Name: rlworkgroup/garage
Commit Name: 7d2a67412daa0abb3ce2339a8f716a4ca51791e4
Time: 2020-06-11
Author: 41180126+krzentner@users.noreply.github.com
File Name: tests/garage/torch/policies/test_gaussian_mlp_policy.py
Class Name: TestGaussianMLPPolicies
Method Name: test_get_action
Project Name: rlworkgroup/garage
Commit Name: 7d2a67412daa0abb3ce2339a8f716a4ca51791e4
Time: 2020-06-11
Author: 41180126+krzentner@users.noreply.github.com
File Name: tests/garage/torch/policies/test_gaussian_mlp_policy.py
Class Name: TestGaussianMLPPolicies
Method Name: test_get_action_np
Project Name: rlworkgroup/garage
Commit Name: 7d2a67412daa0abb3ce2339a8f716a4ca51791e4
Time: 2020-06-11
Author: 41180126+krzentner@users.noreply.github.com
File Name: tests/garage/torch/algos/test_sac.py
Class Name:
Method Name: testTemperatureLoss
Project Name: rlworkgroup/garage
Commit Name: 7d2a67412daa0abb3ce2339a8f716a4ca51791e4
Time: 2020-06-11
Author: 41180126+krzentner@users.noreply.github.com
File Name: tests/garage/torch/policies/test_gaussian_mlp_policy.py
Class Name: TestGaussianMLPPolicies
Method Name: test_get_actions_np