File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,8 @@ RUN apt-get install -y libfreetype6-dev && \
270
270
RUN pip install opencv-contrib-python opencv-python && \
271
271
/tmp/clean-layer.sh
272
272
273
- RUN pip install scipy \
273
+ # Pin scipy until we update JAX b/335003097
274
+ RUN pip install scipy==1.12.0 \
274
275
# Scikit-learn accelerated library for x86
275
276
scikit-learn-intelex>=2023.0.1 \
276
277
# HDF5 support
Original file line number Diff line number Diff line change 1
1
import unittest
2
2
3
3
import geoviews .feature as gf
4
-
4
+ import holoviews as hv
5
5
from cartopy import crs
6
6
7
7
class TestGeoviews (unittest .TestCase ):
8
8
def test_viz (self ):
9
+ hv .extension ('matplotlib' )
9
10
(gf .ocean + gf .land + gf .ocean * gf .land * gf .coastline * gf .borders ).options (
10
11
'Feature' , projection = crs .Geostationary (), global_extent = True
11
12
).cols (3 )
Original file line number Diff line number Diff line change @@ -65,14 +65,10 @@ RUN pip install tensorflow_hub https://storage.googleapis.com/cloud-tpu-tpuvm-ar
65
65
papermill jupyterlab python-lsp-server[all] "jupyter-lsp==1.5.1" \
66
66
pandas matplotlib opencv-python-headless librosa accelerate diffusers scikit-learn transformers \
67
67
seaborn timm albumentations einops pyarrow fastparquet opencv-python \
68
+ "keras>3" keras-cv keras-nlp \
68
69
kagglehub && \
69
70
/tmp/clean-layer.sh
70
71
71
- # b/318672157 Install Keras 3 for loading models.
72
- # We ignore dependencies for now since tf2.15 should work despite pip saying it won't.
73
- RUN pip install --no-dependencies "keras>3" keras-cv keras-nlp && \
74
- /tmp/clean-layer.sh
75
-
76
72
# Tensorflow libtpu:
77
73
RUN curl --output /lib/libtpu.so https://storage.googleapis.com/cloud-tpu-tpuvm-artifacts/libtpu/${TF_LIBTPU_VERSION}/libtpu.so
78
74
Original file line number Diff line number Diff line change 1
1
BASE_IMAGE=python:3.10
2
2
PYTHON_WHEEL_VERSION=cp310
3
3
PYTHON_VERSION_PATH=python3.10
4
+ # gsutil ls gs://cloud-tpu-tpuvm-artifacts/tensorflow
4
5
# https://cloud.google.com/tpu/docs/supported-tpu-configurations#libtpu_versions
5
- TENSORFLOW_VERSION=2.15.0
6
- TF_LIBTPU_VERSION=1.9.0
6
+ TENSORFLOW_VERSION=2.16.1
7
+ TF_LIBTPU_VERSION=1.10.1
7
8
TF_LINUX_WHEEL_VERSION=manylinux_2_17_x86_64.manylinux2014_x86_64
8
9
JAX_VERSION=0.4.26
9
10
# gsutil ls gs://pytorch-xla-releases/wheels/tpuvm/* | grep libtpu | grep -v -E ".*rc[0-9].*"
You can’t perform that action at this time.
0 commit comments