Skip to content

Commit

Permalink
device placement off
Browse files Browse the repository at this point in the history
  • Loading branch information
SamKirkiles committed Apr 19, 2018
1 parent 2ecf8dc commit 618c54e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def train(self,train_step,iterations=2000,restore=False):
with tf.device(self.light_device):
saver = tf.train.Saver()

with tf.Session(config=tf.ConfigProto(allow_soft_placement=True, log_device_placement=True)) as sess:
with tf.Session(config=tf.ConfigProto(allow_soft_placement=True)) as sess:
try:

if restore:
Expand Down Expand Up @@ -175,7 +175,7 @@ def generate(self,char2ix,ix2char,seq_length,restore=False):

saver = tf.train.Saver()

with tf.Session(config=tf.ConfigProto(allow_soft_placement=True, log_device_placement=True)) as sess:
with tf.Session(config=tf.ConfigProto(allow_soft_placement=True)) as sess:

# init session
if restore:
Expand Down

0 comments on commit 618c54e

Please sign in to comment.