Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.pyc
*logs/
3 changes: 2 additions & 1 deletion run_summarization.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def setup_training(model, batcher):
train_dir = os.path.join(FLAGS.log_root, "train")
if not os.path.exists(train_dir): os.makedirs(train_dir)

default_device = tf.device('/cpu:0')
# use the first available GPU
default_device = tf.device('/gpu:0')
with default_device:
model.build_graph() # build the graph
if FLAGS.convert_to_coverage_model:
Expand Down