Skip to content

Commit 6d9020c

Browse files
committed
move basedir to source
1 parent ba3964b commit 6d9020c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

init_examples.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# This script contains utility functions and initialize exmaple scripts.
33
# Eg: run_python_examples.sh, run_distributed_examples.sh
44

5-
BASE_DIR="$(pwd)/$(dirname $0)"
65
EXAMPLES=$(echo $1 | sed -e 's/ //g')
76

87
# Redirect 'python' calls to 'python3'

run_distributed_examples.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
# to pip install dependencies (other than pytorch), run all examples, and remove temporary/changed data files.
1111
# Expects pytorch, torchvision to be installed.
1212

13-
source ./init_examples.sh
13+
BASE_DIR="$(pwd)/$(dirname $0)"
14+
source $BASE_DIR/init_examples.sh
1415

1516
function distributed() {
1617
start

run_python_examples.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
# to pip install dependencies (other than pytorch), run all examples, and remove temporary/changed data files.
1111
# Expects pytorch, torchvision to be installed.
1212

13-
source ./init_examples.sh
13+
BASE_DIR="$(pwd)/$(dirname $0)"
14+
source $BASE_DIR/init_examples.sh
1415

1516
function dcgan() {
1617
start

0 commit comments

Comments
 (0)