01125b8fcfce88472c2e20d116bc6662032088e0,rllib/utils/exploration/parameter_noise.py,ParameterNoise,_sample_new_noise,#ParameterNoise#,290
Before Change
def _sample_new_noise(self, *, tf_sess=None):
Samples new noise and stores it in `self.noise`.
if self.framework == "tf":
if tf.executing_eagerly():
self._tf_sample_new_noise_op()
else:
tf_sess.run(self.tf_sample_new_noise_op)
else:
for i in range(len(self.noise)):
self.noise[i] = torch.normal(
mean=torch.zeros(self.noise[i].size()), std=self.stddev)
After Change
Samples new noise and stores it in `self.noise`.
if self.framework == "tf":
tf_sess.run(self.tf_sample_new_noise_op)
elif self.framework == "tfe":
self._tf_sample_new_noise_op()
else:
for i in range(len(self.noise)):
self.noise[i] = torch.normal(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: ray-project/ray
Commit Name: 01125b8fcfce88472c2e20d116bc6662032088e0
Time: 2020-07-09
Author: sven@anyscale.io
File Name: rllib/utils/exploration/parameter_noise.py
Class Name: ParameterNoise
Method Name: _sample_new_noise
Project Name: ray-project/ray
Commit Name: 01125b8fcfce88472c2e20d116bc6662032088e0
Time: 2020-07-09
Author: sven@anyscale.io
File Name: rllib/utils/exploration/parameter_noise.py
Class Name: ParameterNoise
Method Name: _add_stored_noise
Project Name: ray-project/ray
Commit Name: 01125b8fcfce88472c2e20d116bc6662032088e0
Time: 2020-07-09
Author: sven@anyscale.io
File Name: rllib/utils/exploration/parameter_noise.py
Class Name: ParameterNoise
Method Name: _remove_noise