Skip to content

Commit 3f7e68f

Browse files
authored
Support more TPU VM connection modes
1 parent 9daeff6 commit 3f7e68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tpu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ RUN pip install papermill jupyterlab python-lsp-server[all] jupyterlab-lsp
6969
RUN pip install pandas matplotlib
7070

7171
# Monkey-patch the default TPU to the local (TPU VM).
72-
RUN sed -i 's/def connect(tpu=None,/def connect(tpu="local",/' /usr/local/lib/python3.8/site-packages/tensorflow/python/distribute/cluster_resolver/tpu/tpu_cluster_resolver.py
72+
RUN sed -i 's/tpu=None,/tpu="local",/' /usr/local/lib/python3.8/site-packages/tensorflow/python/distribute/cluster_resolver/tpu/tpu_cluster_resolver.py
7373

7474
# Set these env vars so that they don't produce errs calling the metadata server to load them:
7575
ENV TPU_ACCELERATOR_TYPE=v3-8

0 commit comments

Comments
 (0)