run_tpu.sh 420 Bytes
Newer Older
1
2
3
4
#!/bin/bash
set -e

# Example settings:
5
6
# export TPU="taylorrobie-tpu-0"
# export BUCKET="gs://taylorrobie-tpu-test-bucket-2"
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

# Remove IDE "not assigned" warning highlights.
TPU=${TPU:-""}
BUCKET=${BUCKET:-""}

if [[ -z ${TPU} ]]; then
  echo "Please set 'TPU' to the name of the TPU to be used."
  exit 1
fi

if [[ -z ${BUCKET} ]]; then
  echo "Please set 'BUCKET' to the GCS bucket to be used."
  exit 1
fi

./run.sh