Python config.tf_config() Examples

The following are 1 code examples of config.tf_config(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module config , or try the search function .
Example #1
Source File: agent.py    From reinforce_py with MIT License 5 votes vote down vote up
def __init__(self, env):
        self.sess = tf.Session(config=tf_config)
        ob_space = env.observation_space
        ac_space = env.action_space
        self.act_policy = Policy(ob_space, ac_space, env.num_envs,
                                 n_steps=1, reuse=False)
        self.train_policy = Policy(ob_space, ac_space, args.minibatch,
                                   n_steps=args.batch_steps, reuse=True)
        self._build_train()
        self.sess.run(tf.global_variables_initializer())