Skip to content

Commit

Permalink
Merge pull request dennybritz#120 from RoshanTanisha/master
Browse files Browse the repository at this point in the history
fixed memory leak
  • Loading branch information
dennybritz authored Dec 4, 2017
2 parents c0ae99c + 6de4fee commit 4e24742
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
dev_sample_index = -1 * int(FLAGS.dev_sample_percentage * float(len(y)))
x_train, x_dev = x_shuffled[:dev_sample_index], x_shuffled[dev_sample_index:]
y_train, y_dev = y_shuffled[:dev_sample_index], y_shuffled[dev_sample_index:]

del x, y, x_shuffled, y_shuffled

print("Vocabulary Size: {:d}".format(len(vocab_processor.vocabulary_)))
print("Train/Dev split: {:d}/{:d}".format(len(y_train), len(y_dev)))

Expand Down

0 comments on commit 4e24742

Please sign in to comment.