You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN curl --output /usr/local/lib/python3.10/site-packages/libtpu/libtpu.so https://storage.googleapis.com/cloud-tpu-tpuvm-artifacts/libtpu/${TF_LIBTPU_VERSION}/libtpu.so
RUN sed -i '/from tensorflow_hub import uncompressed_module_resolver/a from tensorflow_hub import kaggle_module_resolver' /usr/local/lib/${PYTHON_VERSION_PATH}/site-packages/tensorflow_hub/config.py
77
71
RUN sed -i '/_install_default_resolvers()/a \ \ registry.resolver.add_implementation(kaggle_module_resolver.KaggleFileResolver())' /usr/local/lib/${PYTHON_VERSION_PATH}/site-packages/tensorflow_hub/config.py
78
72
79
-
# Monkey-patch the default TPU to the local (TPU VM).
80
-
RUN sed -i 's/tpu=None,/tpu="local",/' /usr/local/lib/${PYTHON_VERSION_PATH}/site-packages/tensorflow/python/distribute/cluster_resolver/tpu/tpu_cluster_resolver.py
81
-
82
73
# Set these env vars so that they don't produce errs calling the metadata server to load them:
83
74
ENV TPU_ACCELERATOR_TYPE=v3-8
84
75
ENV TPU_PROCESS_ADDRESSES=local
@@ -92,7 +83,6 @@ LABEL build-date=$BUILD_DATE
92
83
ENV GIT_COMMIT=${GIT_COMMIT}
93
84
ENV BUILD_DATE=${BUILD_DATE}
94
85
95
-
LABEL tensorflow-version=$TENSORFLOW_VERSION
96
86
LABEL kaggle-lang=python
97
87
98
88
# Correlate current release with the git hash inside the kernel editor by running `!cat /etc/git_commit`.
0 commit comments