This repository was archived by the owner on Nov 30, 2023. It is now read-only.
-
Couldn't load subscription status.
- Fork 1.4k
Tensorflow addons #347
Merged
Merged
Tensorflow addons #347
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
8a3710c
Add tensorflow-addons support
bhack a688911
Remove space
bhack f49fc17
Change reference image
bhack d2f105e
Set default provider to black
bhack 6c7c2d7
Add clang_format fallbackStyle
bhack 35b86b6
Add Tensoflow header include path
bhack 6d6e12c
Fix setting key
bhack d945489
Set default update to false
bhack b2d7882
Add missing coma
bhack 34eb0c2
Add optional nvidia support
bhack b7e505b
Fix comment
bhack 32104ff
Enable pytest
bhack 6dff6e1
Disable pytest integration for bus
bhack de0aa43
Workaround with pytestyArgs
bhack 981b3ae
Add build args CPU/GPU
bhack f2c0935
Enable flake8 liniting
bhack 4cf3caa
Add commented bazel integration
bhack 0f1da3f
Move nvidia runArgs
bhack 199eb09
Fix space
bhack aa72776
Change tensorflow log level for tests
bhack c8b83a0
Fix typo
bhack 741bcea
Fix missiing "
bhack 35e900b
Remove unused settings
bhack File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
repository-containers/github.com/tensorflow/addons/.devcontainer/Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| #------------------------------------------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. | ||
| #------------------------------------------------------------------------------------------------------------- | ||
|
|
||
| ARG IMAGE_TYPE=latest-cpu | ||
| FROM tfaddons/dev_container:$IMAGE_TYPE | ||
|
|
||
| # This Dockerfile adds a non-root user with sudo access. Use the "remoteUser" | ||
| # property in devcontainer.json to use it. On Linux, the container user's GID/UIDs | ||
| # will be updated to match your local UID/GID (when using the dockerFile property). | ||
| # See https://aka.ms/vscode-remote/containers/non-root-user for details. | ||
| ARG USERNAME=vscode | ||
| ARG USER_UID=1000 | ||
| ARG USER_GID=$USER_UID | ||
|
|
||
| # Options for common package install script - SHA updated on release | ||
| ARG INSTALL_ZSH="false" | ||
| ARG UPGRADE_PACKAGES="false" | ||
| ARG COMMON_SCRIPT_SOURCE="https://raw.githubusercontent.com/microsoft/vscode-dev-containers/master/script-library/common-debian.sh" | ||
| ARG COMMON_SCRIPT_SHA="dev-mode" | ||
|
|
||
| # Configure apt and install packages | ||
| RUN apt-get update \ | ||
| && export DEBIAN_FRONTEND=noninteractive \ | ||
| # | ||
| # Verify git, common tools / libs installed, add/modify non-root user, optionally install zsh | ||
| && apt-get -y install --no-install-recommends curl ca-certificates 2>&1 \ | ||
| && curl -sSL ${COMMON_SCRIPT_SOURCE} -o /tmp/common-setup.sh \ | ||
| && ([ "${COMMON_SCRIPT_SHA}" = "dev-mode" ] || (echo "${COMMON_SCRIPT_SHA} */tmp/common-setup.sh" | sha256sum -c -)) \ | ||
| && /bin/bash /tmp/common-setup.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" \ | ||
| && rm /tmp/common-setup.sh \ | ||
| # | ||
| # ********************************************************************* | ||
| # * Uncomment this section to use RUN to install other dependencies. * | ||
| # * See https://aka.ms/vscode-remote/containers/dockerfile-run * | ||
| # ********************************************************************* | ||
| # && apt-get -y install --no-install-recommends <your-package-list-here> | ||
| # | ||
| # Clean up | ||
| && apt-get autoremove -y \ | ||
| && apt-get clean -y \ | ||
| && rm -rf /var/lib/apt/lists/* |
50 changes: 50 additions & 0 deletions
50
repository-containers/github.com/tensorflow/addons/.devcontainer/devcontainer.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| { | ||
| "name": "Tensorflow Addons SIG Dev Container", | ||
|
|
||
| // Uncomment this for GPU images | ||
| // "build": { | ||
| // "args": { | ||
| // "IMAGE_TYPE": "latest" | ||
| // } | ||
| // }, | ||
|
|
||
| "dockerFile": "Dockerfile", | ||
|
|
||
| "remoteEnv": { | ||
| "TF_CPP_MIN_LOG_LEVEL": "1" | ||
| }, | ||
|
|
||
| // Set *default* container specific settings.json values on container create. | ||
| "settings": { | ||
| "terminal.integrated.shell.linux": null, | ||
| "python.formatting.provider": "black", | ||
| "python.linting.flake8Enabled": true, | ||
| "python.testing.pytestEnabled": true, | ||
| "python.testing.pytestArgs": ["./tensorflow_addons"], | ||
| "C_Cpp.clang_format_style": "{BasedOnStyle: Google}", | ||
| "C_Cpp.default.includePath": [ | ||
| "${workspaceFolder}/**", | ||
| "/usr/local/lib/python3.6/dist-packages/tensorflow/include/" | ||
| ], | ||
| }, | ||
|
|
||
| // Add the IDs of extensions you want installed when the container is created. | ||
| "extensions": [ | ||
| // Before you enable bazel integration check https://github.com/bazelbuild/bazel/issues/10226 | ||
| // "BazelBuild.vscode-bazel", | ||
| "ms-python.python", | ||
| "ms-vscode.cpptools" | ||
| ], | ||
|
|
||
| // Uncomment when using a ptrace-based debugger like C++, Go, and Rust | ||
| "runArgs": [ | ||
| // Uncomment to enable Nvidia support for GPU images | ||
| // "--runtime=nvidia", | ||
| "--cap-add=SYS_PTRACE", | ||
| "--security-opt", | ||
| "seccomp=unconfined" | ||
| ], | ||
|
|
||
| // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. | ||
| "remoteUser": "vscode" | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.