2ca9af3e7717279defb5f62404eeb2c4befac3e4,src/garage/tf/policies/gaussian_mlp_task_embedding_policy.py,GaussianMLPTaskEmbeddingPolicy,_initialize,#GaussianMLPTaskEmbeddingPolicy#,138

Before Change



        // Encoder should be outside policy scope
        with tf.compat.v1.variable_scope(self._encoder.name):
            latent_var = self._encoder.distribution.sample()

        with tf.compat.v1.variable_scope(self.name) as vs:
            self._variable_scope = vs

After Change


            name="default").outputs

        embed_state_input = tf.concat([obs_input, encoder_dist.sample()], -1)
        dist_given_task, mean_g_t, log_std_g_t = super().build(
            embed_state_input, name="given_task").outputs

        self._f_dist_obs_latent = tf.compat.v1.get_default_session(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rlworkgroup/garage
Commit Name: 2ca9af3e7717279defb5f62404eeb2c4befac3e4
Time: 2020-06-29
Author: ahtsans@gmail.com
File Name: src/garage/tf/policies/gaussian_mlp_task_embedding_policy.py
Class Name: GaussianMLPTaskEmbeddingPolicy
Method Name: _initialize


Project Name: kengz/SLM-Lab
Commit Name: 4d4da8d719d38094e9e73adb2ad7ccb60461a0f6
Time: 2018-01-04
Author: lgraesser@users.noreply.github.com
File Name: slm_lab/agent/algorithm/dqn.py
Class Name: DQNBase
Method Name: sample


Project Name: kengz/SLM-Lab
Commit Name: 2209a77e35d0c2a25c61abd0786584db334843c5
Time: 2019-08-04
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/sac.py
Class Name: SoftActorCritic
Method Name: sample