2f71f723d1d9d417a70f832a0c9178f75da75e18,ml-agents/mlagents/trainers/tests/torch/test_distributions.py,,test_gaussian_distribution,#,15
Before Change
optimizer.zero_grad()
loss.backward()
optimizer.step()
for prob in log_prob.flatten():
assert prob == pytest.approx(-2, abs=0.1)
After Change
optimizer.zero_grad()
loss.backward()
optimizer.step()
for prob in log_prob.flatten().tolist():
assert prob == pytest.approx(-2, abs=0.1)
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: Unity-Technologies/ml-agents
Commit Name: 2f71f723d1d9d417a70f832a0c9178f75da75e18
Time: 2021-01-22
Author: ruoping.dong@unity3d.com
File Name: ml-agents/mlagents/trainers/tests/torch/test_distributions.py
Class Name:
Method Name: test_gaussian_distribution
Project Name: Unity-Technologies/ml-agents
Commit Name: 2f71f723d1d9d417a70f832a0c9178f75da75e18
Time: 2021-01-22
Author: ruoping.dong@unity3d.com
File Name: ml-agents/mlagents/trainers/tests/torch/test_distributions.py
Class Name:
Method Name: test_gaussian_dist_instance
Project Name: Unity-Technologies/ml-agents
Commit Name: 2f71f723d1d9d417a70f832a0c9178f75da75e18
Time: 2021-01-22
Author: ruoping.dong@unity3d.com
File Name: ml-agents/mlagents/trainers/tests/torch/test_networks.py
Class Name:
Method Name: test_networkbody_lstm
Project Name: Unity-Technologies/ml-agents
Commit Name: 2f71f723d1d9d417a70f832a0c9178f75da75e18
Time: 2021-01-22
Author: ruoping.dong@unity3d.com
File Name: ml-agents/mlagents/trainers/tests/torch/test_networks.py
Class Name:
Method Name: test_networkbody_visual
Project Name: Unity-Technologies/ml-agents
Commit Name: 2f71f723d1d9d417a70f832a0c9178f75da75e18
Time: 2021-01-22
Author: ruoping.dong@unity3d.com
File Name: ml-agents/mlagents/trainers/tests/torch/test_networks.py
Class Name:
Method Name: test_networkbody_vector