783e415c29c4a4124ea426c824864a32b0f8ee71,src/garage/tf/policies/gaussian_mlp_policy.py,GaussianMLPPolicy,dist_info_sym,#GaussianMLPPolicy#Any#Any#Any#,192
Before Change
std_param_var = L.get_output(self._l_std_param, obs_var)
if self.min_std_param is not None:
std_param_var = tf.maximum(std_param_var, self.min_std_param)
if self.std_parametrization == "exp":
log_std_var = std_param_var
elif self.std_parametrization == "softplus":
log_std_var = tf.math.log(
tf.math.log(1. + tf.exp(std_param_var)))
else:
raise NotImplementedError
return dict(mean=mean_var, log_std=log_std_var)
@overrides
def get_action(self, observation):
After Change
def dist_info_sym(self, obs_var, state_info_vars=None, name="default"):
Symbolic graph of the distribution.
with tf.compat.v1.variable_scope(self._variable_scope):
mean_var, log_std_var, _, _ = self.model.build(obs_var, name=name)
return dict(mean=mean_var, log_std=log_std_var)
def get_action(self, observation):
Get action from the policy.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: rlworkgroup/garage
Commit Name: 783e415c29c4a4124ea426c824864a32b0f8ee71
Time: 2019-09-05
Author: hegde.nishanth@gmail.com
File Name: src/garage/tf/policies/gaussian_mlp_policy.py
Class Name: GaussianMLPPolicy
Method Name: dist_info_sym
Project Name: emedvedev/attention-ocr
Commit Name: 4bb608662475ecf87dc773a6a1c6914a6c374597
Time: 2017-01-10
Author: sivanke11@gmail.com
File Name: src/model/model.py
Class Name: Model
Method Name: launch
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 8acacf7ecdddd031366f2c044bdc6ce5ba8e5a62
Time: 2018-10-04
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/classifiers/mxnet.py
Class Name: MXTextClassifier
Method Name: predict_from_embedding