aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/dist_test
diff options
context:
space:
mode:
authorGravatar Dandelion Mané <dandelion@google.com>2017-03-10 14:43:23 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-03-10 15:18:15 -0800
commit0386a01ad3beb28364599d82199be1c0837b3fa9 (patch)
tree3a1d2ef947a7bf37286efc0e8ff760e0401ab319 /tensorflow/tools/dist_test
parente73ceaebb209a1e577e7240fba41c692c89143d0 (diff)
Merge changes from github.
Change: 149800363
Diffstat (limited to 'tensorflow/tools/dist_test')
-rwxr-xr-xtensorflow/tools/dist_test/local_test.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tensorflow/tools/dist_test/local_test.sh b/tensorflow/tools/dist_test/local_test.sh
index f9f37ff0e1..f536beef54 100755
--- a/tensorflow/tools/dist_test/local_test.sh
+++ b/tensorflow/tools/dist_test/local_test.sh
@@ -151,6 +151,8 @@ rm -rf "${BUILD_DIR}"
# Run docker image for test.
docker run ${DOCKER_IMG_NAME} \
/var/tf_dist_test/scripts/dist_mnist_test.sh \
- --ps_hosts "localhost:2000,localhost:2001" \
- --worker_hosts "localhost:3000,localhost:3001" \
+ --ps_hosts $(seq -f "localhost:%g" -s "," \
+ 2000 $((2000 + ${NUM_PARAMETER_SERVERS} - 1))) \
+ --worker_hosts $(seq -f "localhost:%g" -s "," \
+ 3000 $((3000 + ${NUM_WORKERS} - 1))) \
--num_gpus 0 ${SYNC_REPLICAS_FLAG}