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)