41 lines
903 B
Bash
Executable File
41 lines
903 B
Bash
Executable File
#!/bin/bash
|
|
|
|
limit=${1:-1}
|
|
loop=10
|
|
|
|
while [ $loop -ge 1 ]
|
|
do
|
|
# D: 1~4
|
|
# P: 0~4
|
|
# S: 1~4
|
|
# NODE: 1~2
|
|
Dilation=$(expr $(($RANDOM%3)) + 1)
|
|
Padding=$(expr $(($RANDOM%4)))
|
|
Stride=$(expr $(($RANDOM%3)) + 1)
|
|
NODES=$(expr $(($RANDOM%2)) + 1)
|
|
|
|
# N C H W K R S
|
|
N=$(expr $(($RANDOM%16)) + 1)
|
|
K=$(expr $(($RANDOM%16)) + 1)
|
|
C=$(expr $(($RANDOM%16)) + 1)
|
|
H=$(expr $(($RANDOM%256)) + 1)
|
|
W=$(expr $(($RANDOM%256)) + 1)
|
|
R=$(expr $(($RANDOM%16)) + 1)
|
|
S=$(expr $(($RANDOM%16)) + 1)
|
|
|
|
if [ $(expr $H + 2 \* $Padding) -lt $(expr $Dilation \* \( $R - 1 \) + 1) ]
|
|
then
|
|
continue
|
|
fi
|
|
|
|
if [ $(expr $W + 2 \* $Padding) -lt $(expr $Dilation \* \( $S - 1 \) + 1) ]
|
|
then
|
|
continue
|
|
fi
|
|
|
|
# order of parameters: N C H W K R S
|
|
source ./run.sh -v -d $Dilation -p $Padding -s $Stride -n 1 $N $C $H $W $K $R $S
|
|
|
|
((loop--))
|
|
done
|