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.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: keras-team/keras
Commit Name: d18c564548104c862892a1f73423e333f11f7ce2
Time: 2018-07-18
Author: gabrieldemarmiesse@gmail.com
File Name: keras/engine/base_layer.py
Class Name: Layer
Method Name: __call__


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 4f61d8db82062a3dc8e267c02bf60fb12fabcf3a
Time: 2020-06-09
Author: M.N.Tran@ibm.com
File Name: art/estimators/object_detection/TensorFlowFasterRCNN.py
Class Name: PyTorchFasterRCNN
Method Name: __init__