3a3bdf17ca08052309016bdfa481a58c70112abd,tests/garage/tf/models/test_gaussian_mlp_model.py,TestGaussianMLPModel,test_std_share_network_is_pickleable,#TestGaussianMLPModel#Any#Any#Any#,181

Before Change


        with tf.variable_scope("GaussianMLPModel", reuse=True):
            bias = tf.get_variable("dist_params/mean_std_network/output/bias")
        // assign it to all ones
        self.sess.run(tf.assign(bias, tf.ones_like(bias)))

        output1 = self.sess.run(outputs[:-1], feed_dict={input_var: self.obs})

        h = pickle.dumps(model)

After Change


        with tf.variable_scope("GaussianMLPModel", reuse=True):
            bias = tf.get_variable("dist_params/mean_std_network/output/bias")
        // assign it to all ones
        bias.load(tf.ones_like(bias).eval())

        output1 = self.sess.run(outputs[:-1], feed_dict={input_var: self.obs})

        h = pickle.dumps(model)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 7

Instances


Project Name: rlworkgroup/garage
Commit Name: 3a3bdf17ca08052309016bdfa481a58c70112abd
Time: 2019-04-26
Author: ahtsans@gmail.com
File Name: tests/garage/tf/models/test_gaussian_mlp_model.py
Class Name: TestGaussianMLPModel
Method Name: test_std_share_network_is_pickleable


Project Name: rlworkgroup/garage
Commit Name: 3a3bdf17ca08052309016bdfa481a58c70112abd
Time: 2019-04-26
Author: ahtsans@gmail.com
File Name: tests/garage/tf/models/test_cnn_model.py
Class Name: TestCNNModel
Method Name: test_is_pickleable


Project Name: rlworkgroup/garage
Commit Name: 3a3bdf17ca08052309016bdfa481a58c70112abd
Time: 2019-04-26
Author: ahtsans@gmail.com
File Name: tests/garage/tf/models/test_gaussian_mlp_model.py
Class Name: TestGaussianMLPModel
Method Name: test_without_std_share_network_is_pickleable


Project Name: rlworkgroup/garage
Commit Name: 3a3bdf17ca08052309016bdfa481a58c70112abd
Time: 2019-04-26
Author: ahtsans@gmail.com
File Name: tests/garage/tf/policies/test_categorical_conv_policy_with_model.py
Class Name: TestCategoricalConvPolicyWithModel
Method Name: test_is_pickleable


Project Name: rlworkgroup/garage
Commit Name: 3a3bdf17ca08052309016bdfa481a58c70112abd
Time: 2019-04-26
Author: ahtsans@gmail.com
File Name: tests/garage/tf/models/test_gaussian_mlp_model.py
Class Name: TestGaussianMLPModel
Method Name: test_adaptive_std_is_pickleable