mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-01 00:29:42 +01:00
Upgrade to tensorflow 1.14.0 (#244)
* add curl, unzip, zlib1g-dev to dockerfiles
This commit is contained in:
parent
d741c3ee59
commit
26eebce98f
8 changed files with 53 additions and 14 deletions
|
@ -1,5 +1,9 @@
|
||||||
# ChangeLog
|
# ChangeLog
|
||||||
|
|
||||||
|
## v0.2.0.1
|
||||||
|
- Switch to tensorflow 1.14.0.
|
||||||
|
- Compatibility with stackage LTS-13.13.
|
||||||
|
|
||||||
## v0.2.0.0
|
## v0.2.0.0
|
||||||
- Switch to tensorflow 1.9.
|
- Switch to tensorflow 1.9.
|
||||||
- Switch to proto-lens 0.2.2.
|
- Switch to proto-lens 0.2.2.
|
||||||
|
|
|
@ -91,7 +91,7 @@ stack --docker --docker-image=$IMAGE_NAME build --exec Main
|
||||||
If you want to use GPU you can do:
|
If you want to use GPU you can do:
|
||||||
|
|
||||||
```
|
```
|
||||||
IMAGE_NAME=tensorflow/haskell:1.9.0-gpu
|
IMAGE_NAME=tensorflow/haskell:1.14.0-gpu
|
||||||
docker build -t $IMAGE_NAME docker/gpu
|
docker build -t $IMAGE_NAME docker/gpu
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# stack to be installed on the host. This comes at the expense of
|
# stack to be installed on the host. This comes at the expense of
|
||||||
# flexibility.
|
# flexibility.
|
||||||
|
|
||||||
FROM tensorflow/tensorflow:1.9.0
|
FROM tensorflow/tensorflow:1.14.0
|
||||||
LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>"
|
LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>"
|
||||||
|
|
||||||
# The build context directory is the top of the tensorflow-haskell
|
# The build context directory is the top of the tensorflow-haskell
|
||||||
|
@ -22,6 +22,10 @@ RUN \
|
||||||
# Makes stack viable in the container
|
# Makes stack viable in the container
|
||||||
libgmp-dev \
|
libgmp-dev \
|
||||||
libcurl3-dev \
|
libcurl3-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
# For fetching dependencies
|
||||||
|
curl \
|
||||||
|
unzip \
|
||||||
# Required for tcp connections by stack (See: https://github.com/tensorflow/haskell/issues/182)
|
# Required for tcp connections by stack (See: https://github.com/tensorflow/haskell/issues/182)
|
||||||
netbase \
|
netbase \
|
||||||
&& \
|
&& \
|
||||||
|
@ -32,8 +36,8 @@ RUN \
|
||||||
curl -O -L https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip && \
|
curl -O -L https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip && \
|
||||||
unzip -d /usr/local protoc-3.2.0-linux-x86_64.zip bin/protoc && \
|
unzip -d /usr/local protoc-3.2.0-linux-x86_64.zip bin/protoc && \
|
||||||
chmod 755 /usr/local/bin/protoc && \
|
chmod 755 /usr/local/bin/protoc && \
|
||||||
curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.9.0.tar.gz && \
|
curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.14.0.tar.gz && \
|
||||||
tar zxf libtensorflow-cpu-linux-x86_64-1.9.0.tar.gz -C /usr/local && \
|
tar zxf libtensorflow-cpu-linux-x86_64-1.14.0.tar.gz -C /usr/local && \
|
||||||
ldconfig && \
|
ldconfig && \
|
||||||
stack setup && \
|
stack setup && \
|
||||||
stack test --only-dependencies
|
stack test --only-dependencies
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Prepare the image with:
|
# Prepare the image with:
|
||||||
# docker build -t tensorflow/haskell:v0 docker
|
# docker build -t tensorflow/haskell:v0 docker
|
||||||
FROM tensorflow/tensorflow:1.9.0
|
FROM tensorflow/tensorflow:1.14.0
|
||||||
LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>"
|
LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>"
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
@ -12,6 +12,10 @@ RUN apt-get install -y \
|
||||||
libncurses5-dev \
|
libncurses5-dev \
|
||||||
# Makes stack viable in the container
|
# Makes stack viable in the container
|
||||||
libgmp-dev \
|
libgmp-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
# For fetching dependencies
|
||||||
|
curl \
|
||||||
|
unzip \
|
||||||
# Required for locales configuration.
|
# Required for locales configuration.
|
||||||
locales \
|
locales \
|
||||||
# Required for tcp connections by stack (See: https://github.com/tensorflow/haskell/issues/182)
|
# Required for tcp connections by stack (See: https://github.com/tensorflow/haskell/issues/182)
|
||||||
|
@ -27,8 +31,8 @@ RUN \
|
||||||
curl -O -L https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip && \
|
curl -O -L https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip && \
|
||||||
unzip -d /usr/local protoc-3.2.0-linux-x86_64.zip bin/protoc && \
|
unzip -d /usr/local protoc-3.2.0-linux-x86_64.zip bin/protoc && \
|
||||||
chmod 755 /usr/local/bin/protoc && \
|
chmod 755 /usr/local/bin/protoc && \
|
||||||
curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.9.0.tar.gz && \
|
curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.14.0.tar.gz && \
|
||||||
tar zxf libtensorflow-cpu-linux-x86_64-1.9.0.tar.gz -C /usr/local && \
|
tar zxf libtensorflow-cpu-linux-x86_64-1.14.0.tar.gz -C /usr/local && \
|
||||||
ldconfig
|
ldconfig
|
||||||
|
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Prepare the image with:
|
# Prepare the image with:
|
||||||
# docker build -t tensorflow/haskell:1.9.0-gpu docker/gpu
|
# docker build -t tensorflow/haskell:1.14.0-gpu docker/gpu
|
||||||
FROM tensorflow/tensorflow:1.9.0-gpu
|
FROM tensorflow/tensorflow:1.14.0-gpu
|
||||||
LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>"
|
LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>"
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
@ -14,6 +14,10 @@ RUN apt-get install -y \
|
||||||
libncurses5-dev \
|
libncurses5-dev \
|
||||||
# Makes stack viable in the container
|
# Makes stack viable in the container
|
||||||
libgmp-dev \
|
libgmp-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
# For fetching dependencies
|
||||||
|
curl \
|
||||||
|
unzip \
|
||||||
# Required for locales configuration.
|
# Required for locales configuration.
|
||||||
locales
|
locales
|
||||||
|
|
||||||
|
@ -27,8 +31,8 @@ RUN \
|
||||||
curl -O -L https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip && \
|
curl -O -L https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip && \
|
||||||
unzip -d /usr/local protoc-3.2.0-linux-x86_64.zip bin/protoc && \
|
unzip -d /usr/local protoc-3.2.0-linux-x86_64.zip bin/protoc && \
|
||||||
chmod 755 /usr/local/bin/protoc && \
|
chmod 755 /usr/local/bin/protoc && \
|
||||||
curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-1.9.0.tar.gz && \
|
curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-1.14.0.tar.gz && \
|
||||||
tar zxf libtensorflow-gpu-linux-x86_64-1.9.0.tar.gz -C /usr/local && \
|
tar zxf libtensorflow-gpu-linux-x86_64-1.14.0.tar.gz -C /usr/local && \
|
||||||
ldconfig
|
ldconfig
|
||||||
|
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
|
|
|
@ -91,6 +91,18 @@ fudgePackageDesc lbi p = p
|
||||||
blackList =
|
blackList =
|
||||||
[ -- Requires the "func" type:
|
[ -- Requires the "func" type:
|
||||||
"FilterDataset"
|
"FilterDataset"
|
||||||
|
, "BatchFunction"
|
||||||
|
, "Case"
|
||||||
|
, "ChooseFastestBranchDataset"
|
||||||
|
, "ExperimentalGroupByReducerDataset"
|
||||||
|
, "ExperimentalGroupByWindowDataset"
|
||||||
|
, "ExperimentalMapAndBatchDataset"
|
||||||
|
, "ExperimentalMapDataset"
|
||||||
|
, "ExperimentalNumaMapAndBatchDataset"
|
||||||
|
, "ExperimentalParallelInterleaveDataset"
|
||||||
|
, "ExperimentalScanDataset"
|
||||||
|
, "ExperimentalTakeWhileDataset"
|
||||||
|
, "FilterDataset"
|
||||||
, "FlatMapDataset"
|
, "FlatMapDataset"
|
||||||
, "For"
|
, "For"
|
||||||
, "GeneratorDataset"
|
, "GeneratorDataset"
|
||||||
|
@ -101,22 +113,33 @@ blackList =
|
||||||
, "MapAndBatchDataset"
|
, "MapAndBatchDataset"
|
||||||
, "MapAndBatchDatasetV2"
|
, "MapAndBatchDatasetV2"
|
||||||
, "MapDataset"
|
, "MapDataset"
|
||||||
, "MapDataset"
|
, "MapDefun"
|
||||||
, "OneShotIterator"
|
, "OneShotIterator"
|
||||||
, "ParallelInterleaveDataset"
|
, "ParallelInterleaveDataset"
|
||||||
|
, "ParallelInterleaveDatasetV2"
|
||||||
, "ParallelMapDataset"
|
, "ParallelMapDataset"
|
||||||
|
, "ParseSequenceExample"
|
||||||
, "PartitionedCall"
|
, "PartitionedCall"
|
||||||
|
, "ReduceDataset"
|
||||||
, "RemoteCall"
|
, "RemoteCall"
|
||||||
, "ScanDataset"
|
, "ScanDataset"
|
||||||
|
, "StatefulPartitionedCall"
|
||||||
|
, "StatelessIf"
|
||||||
|
, "StatelessWhile"
|
||||||
, "SymbolicGradient"
|
, "SymbolicGradient"
|
||||||
|
, "TPUPartitionedCall"
|
||||||
, "TPUReplicate"
|
, "TPUReplicate"
|
||||||
, "While"
|
, "While"
|
||||||
, "XlaIf"
|
, "XlaIf"
|
||||||
, "XlaLaunch"
|
, "XlaLaunch"
|
||||||
|
, "XlaReduce"
|
||||||
, "XlaReduceWindow"
|
, "XlaReduceWindow"
|
||||||
|
, "XlaSelectAndScatter"
|
||||||
, "XlaWhile"
|
, "XlaWhile"
|
||||||
, "_If"
|
, "_If"
|
||||||
|
, "_TPUReplicate"
|
||||||
, "_While"
|
, "_While"
|
||||||
|
, "_XlaCompile"
|
||||||
]
|
]
|
||||||
|
|
||||||
autogenModulesDir :: LocalBuildInfo -> FilePath
|
autogenModulesDir :: LocalBuildInfo -> FilePath
|
||||||
|
|
2
third_party/tensorflow
vendored
2
third_party/tensorflow
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 25c197e02393bd44f50079945409009dd4d434f8
|
Subproject commit 6612da89516247503f03ef76e974b51a434fb52e
|
|
@ -27,7 +27,7 @@ fi
|
||||||
TMP_DIR=$(mktemp -d)
|
TMP_DIR=$(mktemp -d)
|
||||||
|
|
||||||
echo "Downloading libtensorflow..."
|
echo "Downloading libtensorflow..."
|
||||||
curl https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-darwin-x86_64-1.9.0.tar.gz > "$TMP_DIR/libtensorflow.tar.gz"
|
curl https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-darwin-x86_64-1.14.0.tar.gz > "$TMP_DIR/libtensorflow.tar.gz"
|
||||||
|
|
||||||
echo "Extracting and copying libtensorflow..."
|
echo "Extracting and copying libtensorflow..."
|
||||||
tar zxf "$TMP_DIR/libtensorflow.tar.gz" -C "$TMP_DIR"
|
tar zxf "$TMP_DIR/libtensorflow.tar.gz" -C "$TMP_DIR"
|
||||||
|
|
Loading…
Reference in a new issue