/
run_solidity_return.sh
39 lines (26 loc) · 1.58 KB
/
run_solidity_return.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
if [ -z "$1" ]; then
echo 'Please specify a test batch size!'
exit 1
fi
CUDA_VISIBLE_DEVICES=0 python run_return.py --pos=num --test_only=True --test_batch_size=$1 --language=solidity --epochs=50;
sleep 1;
CUDA_VISIBLE_DEVICES=0 python run_return.py --pos=1 --test_only=True --test_batch_size=$1 --language=solidity --epochs=50;
sleep 1;
CUDA_VISIBLE_DEVICES=0 python run_return.py --pos=2 --test_only=True --test_batch_size=$1 --language=solidity --epochs=50;
sleep 1;
CUDA_VISIBLE_DEVICES=0 python run_return.py --pos=3 --test_only=True --test_batch_size=$1 --language=solidity --epochs=50;
sleep 1;
CUDA_VISIBLE_DEVICES=0 python run_return.py --pos=4 --test_only=True --test_batch_size=$1 --language=solidity --batch_size=64 --epochs=50;
sleep 1;
CUDA_VISIBLE_DEVICES=0 python run_return.py --pos=5 --test_only=True --test_batch_size=$1 --language=solidity --batch_size=64 --epochs=50;
sleep 1;
CUDA_VISIBLE_DEVICES=0 python run_return.py --pos=6 --test_only=True --test_batch_size=$1 --language=solidity --batch_size=32 --epochs=50;
sleep 1;
CUDA_VISIBLE_DEVICES=0 python run_return.py --pos=7 --test_only=True --test_batch_size=$1 --language=solidity --batch_size=32 --epochs=50;
sleep 1;
CUDA_VISIBLE_DEVICES=0 python run_return.py --pos=8 --test_only=True --test_batch_size=$1 --language=solidity --batch_size=16 --epochs=50;
sleep 1;
CUDA_VISIBLE_DEVICES=0 python run_return.py --pos=9 --test_only=True --test_batch_size=$1 --language=solidity --batch_size=16 --epochs=50;
sleep 1;
python run_return.py --print_all=True --language=solidity
rm -rf ./results/solidity/return/results.pkl