Skip to content

Commit 020b349

Browse files
author
bwall
committed
Reduce epoch size for deep learning excersize to reduce memory requirements
1 parent a416d23 commit 020b349

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deep_learning_examples/train_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from multiprocessing import Process as Thread, Queue
1313
from itertools import cycle, islice
1414

15-
EPOCH_SIZE = 16384
15+
EPOCH_SIZE = 2048
1616
train_queue = Queue(maxsize=20)
1717
test_queue = Queue(maxsize=20)
1818

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
KERAS_BACKEND="theano" THEANO_FLAGS=device=gpu,floatX=float32 python train_xor_lstm.py
2+
KERAS_BACKEND="theano" THEANO_FLAGS=device=gpu,floatX=float32 python train_model.py

0 commit comments

Comments
 (0)