Skip to content

Commit e96c4df

Browse files
author
Soheil Bahrampour
committed
added bash script to run simulations
1 parent 933adcb commit e96c4df

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

caffe/run.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
mkdir -p outputs
4+
5+
caffe time -model alexnet/train_val.prototxt -iterations 30 -gpu 0 --logtostderr=1 >> outputs/alexnet.log 2>&1
6+
caffe time -model alexnet/train_val_noLRN_noGrouping.prototxt -iterations 30 -gpu 0 --logtostderr=1 >> outputs/alexnet_noLRN_noGrouping.log 2>&1
7+
caffe time -model LeNet/lenet_train_test.prototxt -iterations 100 --logtostderr=1 >> outputs/lenet.log 2>&1
8+
caffe time -model stackedAE/AE1_train_test.prototxt -iterations 100 --logtostderr=1 >> outputs/large_AE1.log 2>&1
9+
caffe time -model stackedAE/AE2_train_test.prototxt -iterations 100 --logtostderr=1 >> outputs/large_AE2.log 2>&1
10+
caffe time -model stackedAE/AE3_train_test.prototxt -iterations 100 --logtostderr=1 >> outputs/large_AE3.log 2>&1
11+
caffe time -model stackedAE/SAE_train_test.prototxt -iterations 100 --logtostderr=1 >> outputs/large_SAE.log 2>&1
12+
caffe time -model stackedAE/smallAE1_train_test.prototxt -iterations 100 --logtostderr=1 >> outputs/small_AE1.log 2>&1
13+
caffe time -model stackedAE/smallAE2_train_test.prototxt -iterations 100 --logtostderr=1 >> outputs/small_AE2.log 2>&1
14+
caffe time -model stackedAE/smallAE3_train_test.prototxt -iterations 100 --logtostderr=1 >> outputs/small_AE3.log 2>&1
15+
caffe time -model stackedAE/smallSAE_train_test.prototxt -iterations 100 --logtostderr=1 >> outputs/small_SAE.log 2>&1

tensorflow/run.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
mkdir -p outputs
4+
5+
python LeNet/lenet.py --logtostderr=1 >> outputs/lenet.log 2>&1
6+
python alexnet/alexnet.py --logtostderr=1 >> outputs/alexnet.log 2>&1
7+
python stackedAE/stackedAE.py --logtostderr=1 >> outputs/SAE.log 2>&1
8+
cd lstm
9+
python lstm.py --logtostderr=1 >> ../outputs/lstm.log 2>&1
10+
cd ..

theano/run.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
mkdir -p outputs
4+
5+
THEANO_FLAGS='device=gpu0' python LeNet/lenet.py --logtostderr=1 >> outputs/lenet.log 2>&1
6+
THEANO_FLAGS='device=gpu0' python alexnet/train.py --logtostderr=1 >> outputs/alexnet.log 2>&1
7+
THEANO_FLAGS='device=gpu0' python stackedAE/SAE.py --logtostderr=1 >> outputs/SAE.log 2>&1
8+
cd lstm
9+
THEANO_FLAGS='device=gpu0' python lstm.py --logtostderr=1 >> ../outputs/lstm.log 2>&1
10+
cd ..

torch/run.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
mkdir -p outputs
4+
5+
th LeNet/lenet.lua --logtostderr=1 >> outputs/lenet.log 2>&1
6+
cd alexnet
7+
th alexnet.lua --logtostderr=1 >> ../outputs/alexnet.log 2>&1
8+
cd ..
9+
th stackedAE/SAE.lua --logtostderr=1 >> outputs/SAE.log 2>&1
10+
cd lstm
11+
th lstm.lua --logtostderr=1 >> ../outputs/lstm.log 2>&1
12+
cd ..

0 commit comments

Comments
 (0)