Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------

FROM tensorflow/tensorflow:2.1.0-custom-op-gpu-ubuntu16

# Install git
RUN apt-get update && apt-get -y install git

# Install dev tools

# Install tensorflow
RUN pip install tensorflow~=2.1.0 typeguard>=2.7

COPY tools/install_deps/finish_bazel_install.sh ./
RUN bash finish_bazel_install.sh

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "TensorFlow-addons",
"dockerFile": "Dockerfile",
"extensions": [
"ms-python.python",
"ms-vscode.cpptools"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
set -e
# hack to have the dependecies in the docker cache
# and have much faster local build with docker
# can be removed once docker buildx/buildkit is stable
# and we'll use "RUN --mount=cache ..." instead
cd /tmp
git clone https://github.com/tensorflow/addons.git
cd addons
python ./configure.py --no-deps
bazel build --nobuild -- //tensorflow_addons/...
cd ..
rm -rf ./addons