-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated memtorch.mn.Module.patch_model for 1.1.0 Release (#32)
- Loading branch information
1 parent
5c20fa2
commit 27b1880
Showing
7 changed files
with
238 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,25 +1,197 @@ | ||
language: python | ||
matrix: | ||
include: | ||
# pytest, codecov | ||
- os: linux | ||
sudo: required | ||
python: 3.6 | ||
dist: xenial | ||
dist: focal | ||
env : | ||
- CIBW_BUILD="cp36-manylinux_x86_64" | ||
- CIBW_MANYLINUX_X86_64_IMAGE="manylinux2014" | ||
- CIBW_ENVIRONMENT="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/host/home/travis/virtualenv/python3.6.12/lib/python3.6/site-packages/torch/lib/:/usr/local/lib" | ||
- CIBW_BEFORE_BUILD="python3 -m pip install -r requirements_linux_osx.txt" | ||
- os: osx | ||
osx_image: xcode11 | ||
language: shell | ||
python: 3.6 | ||
env : | ||
- CIBW_BUILD="cp36-macosx*" | ||
- CIBW_BEFORE_BUILD="python3 -m pip install -r requirements_linux_osx.txt" | ||
- os: linux | ||
sudo: required | ||
python: 3.7 | ||
dist: xenial | ||
dist: focal | ||
env : | ||
- CIBW_BUILD="cp37-manylinux_x86_64" | ||
- CIBW_MANYLINUX_X86_64_IMAGE="manylinux2014" | ||
- CIBW_ENVIRONMENT="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/host/home/travis/virtualenv/python3.7.7/lib/python3.7/site-packages/torch/lib/:/usr/local/lib" | ||
- CIBW_BEFORE_BUILD="python3 -m pip install -r requirements_linux_osx.txt" | ||
- os: osx | ||
osx_image: xcode11 | ||
language: shell | ||
python: 3.7 | ||
env : | ||
- CIBW_BUILD="cp37-macosx*" | ||
- CIBW_BEFORE_BUILD="python3 -m pip install -r requirements_linux_osx.txt" | ||
- os: linux | ||
sudo: required | ||
python: 3.8 | ||
dist: focal | ||
env : | ||
- CIBW_BUILD="cp38-manylinux_x86_64" | ||
- CIBW_MANYLINUX_X86_64_IMAGE="manylinux2014" | ||
- CIBW_ENVIRONMENT="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/host/home/travis/virtualenv/python3.8.3/lib/python3.8/site-packages/torch/lib/:/usr/local/lib" | ||
- CIBW_BEFORE_BUILD="python3 -m pip install -r requirements_linux_osx.txt" | ||
- os: osx | ||
osx_image: xcode11 | ||
language: shell | ||
python: 3.8 | ||
env : | ||
- CIBW_BUILD="cp38-macosx*" | ||
- CIBW_BEFORE_BUILD="python3 -m pip install -r requirements_linux_osx.txt" | ||
# cibuildhweel | ||
- os: linux | ||
sudo: required | ||
python: 3.6 | ||
dist: focal | ||
env : | ||
- CIBUILDWHEEL="True" | ||
- CIBW_BUILD="cp36-manylinux_x86_64" | ||
- CIBW_MANYLINUX_X86_64_IMAGE="manylinux2014" | ||
- CIBW_ENVIRONMENT="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/host/home/travis/virtualenv/python3.6.12/lib/python3.6/site-packages/torch/lib/:/usr/local/lib" | ||
- CIBW_BEFORE_BUILD="python3 -m pip install -r requirements_linux_osx.txt" | ||
- os: osx | ||
osx_image: xcode11 | ||
language: shell | ||
python: 3.6 | ||
env : | ||
- CIBUILDWHEEL="True" | ||
- CIBW_BUILD="cp36-macosx*" | ||
- CIBW_BEFORE_BUILD="python3 -m pip install -r requirements_linux_osx.txt" | ||
- os: windows | ||
language: shell | ||
before_install: | ||
- choco install ninja | ||
- choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64" | ||
- choco install python --version 3.6.8 | ||
- export PATH="/c/Python36:/c/Python36/Scripts:$PATH" | ||
- ln -s /c/Python36/python.exe /c/Python36/python3.exe | ||
env : | ||
- CIBUILDWHEEL="True" | ||
- CIBW_BUILD="cp36-win_amd64" | ||
- CIBW_BEFORE_BUILD="/c/cibw/python/python.3.6.8/tools/python.exe -m pip install -r requirements_windows_cpu.txt" | ||
- os: linux | ||
sudo: required | ||
python: 3.7 | ||
dist: focal | ||
env : | ||
- CIBUILDWHEEL="True" | ||
- CIBW_BUILD="cp37-manylinux_x86_64" | ||
- CIBW_MANYLINUX_X86_64_IMAGE="manylinux2014" | ||
- CIBW_ENVIRONMENT="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/host/home/travis/virtualenv/python3.7.7/lib/python3.7/site-packages/torch/lib/:/usr/local/lib" | ||
- CIBW_BEFORE_BUILD="python3 -m pip install -r requirements_linux_osx.txt" | ||
- os: osx | ||
osx_image: xcode11 | ||
language: shell | ||
python: 3.7 | ||
env : | ||
- CIBUILDWHEEL="True" | ||
- CIBW_BUILD="cp37-macosx*" | ||
- CIBW_BEFORE_BUILD="python3 -m pip install -r requirements_linux_osx.txt" | ||
- os: windows | ||
language: shell | ||
before_install: | ||
- choco install ninja | ||
- choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64" | ||
- choco install python --version 3.7.9 | ||
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH" | ||
- ln -s /c/Python37/python.exe /c/Python37/python3.exe | ||
env : | ||
- CIBUILDWHEEL="True" | ||
- CIBW_BUILD="cp37-win_amd64" | ||
- CIBW_BEFORE_BUILD="/c/cibw/python/python.3.7.9/tools/python.exe -m pip install -r requirements_windows_cpu.txt" | ||
- os: linux | ||
sudo: required | ||
python: 3.8 | ||
dist: focal | ||
env : | ||
- CIBUILDWHEEL="True" | ||
- CIBW_BUILD="cp38-manylinux_x86_64" | ||
- CIBW_MANYLINUX_X86_64_IMAGE="manylinux2014" | ||
- CIBW_ENVIRONMENT="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/host/home/travis/virtualenv/python3.8.3/lib/python3.8/site-packages/torch/lib/:/usr/local/lib" | ||
- CIBW_BEFORE_BUILD="python3 -m pip install -r requirements_linux_osx.txt" | ||
- os: osx | ||
osx_image: xcode11 | ||
language: shell | ||
python: 3.8 | ||
dist: xenial | ||
env : | ||
- CIBUILDWHEEL="True" | ||
- CIBW_BUILD="cp38-macosx*" | ||
- CIBW_BEFORE_BUILD="python3 -m pip install -r requirements_linux_osx.txt" | ||
- os: windows | ||
language: shell | ||
before_install: | ||
- choco install ninja | ||
- choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64" | ||
- choco install python --version 3.8.7 | ||
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH" | ||
- ln -s /c/Python38/python.exe /c/Python38/python3.exe | ||
env : | ||
- CIBUILDWHEEL="True" | ||
- CIBW_BUILD="cp38-win_amd64" | ||
- CIBW_BEFORE_BUILD="/c/cibw/python/python.3.8.7/tools/python.exe -m pip install -r requirements_windows_cpu.txt" | ||
install: | ||
- sudo apt-get install -y ninja-build | ||
- python -m pip install --upgrade pip | ||
- python -m pip install -U pytest | ||
- python -m pip install numpy pandas torch torchvision matplotlib seaborn sklearn codecov pytest-cov travispls ipython | ||
- python setup.py install | ||
- | | ||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | ||
sudo apt-get install -y ninja-build | ||
sudo apt-get install libc6 | ||
fi | ||
- python3 -m pip install --upgrade pip | ||
- python3 -m pip install -U pytest | ||
- | | ||
if [[ "$TRAVIS_OS_NAME" == "linux" ]] || [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | ||
python3 -m pip install -r requirements_linux_osx.txt | ||
python3 setup.py install | ||
else | ||
export PATH=$MSBUILD_PATH:$PATH | ||
cmd.exe //C 'python3 -m pip install -r requirements_windows_cpu.txt' | ||
cmd.exe //C 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat' amd64 '&&' set DISTUTILS_USE_SDK=1 '&&' python3 setup.py install | ||
fi | ||
script: | ||
- travis-pls -m 5000 pytest -s --cov=memtorch | ||
- | | ||
if [[ "$TRAVIS_OS_NAME" == "linux" ]] || [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | ||
if [[ -z "$CIBUILDWHEEL" ]]; then | ||
python3 -m pip install codecov pytest-cov travis-wait-improved | ||
travis-wait-improved --timeout 60m pytest -s --cov=memtorch | ||
else | ||
python3 -m pip install cibuildwheel | ||
python3 -m cibuildwheel --output-dir wheelhouse | ||
fi | ||
else | ||
if [[ -z "$CIBUILDWHEEL" ]]; then | ||
cmd.exe //C 'python3 -m pip install codecov pytest-cov travis-wait-improved' | ||
cmd.exe //C 'travis-wait-improved --timeout 60m pytest -s --cov=memtorch' | ||
else | ||
cmd.exe //C 'python3 -m pip install cibuildwheel' | ||
cmd.exe //C 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat' amd64 '&&' set DISTUTILS_USE_SDK=1 '&&' python3 -m cibuildwheel --output-dir wheelhouse | ||
fi | ||
fi | ||
deploy: | ||
provider: releases | ||
api_key: $TOKEN | ||
file_glob: true | ||
file: | ||
- "/home/travis/build/coreylammie/MemTorch/wheelhouse/*" | ||
- "/Users/travis/build/coreylammie/MemTorch/wheelhouse/*" | ||
- "/c/Users/travis/build/coreylammie/MemTorch/wheelhouse/*" | ||
skip_cleanup: true | ||
draft: true | ||
on: | ||
tags: true | ||
all_branches: true | ||
after_success: | ||
- codecov | ||
- | | ||
if [[ -z "$CIBUILDWHEEL" ]]; then | ||
codecov | ||
fi |
This file contains 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 |
---|---|---|
|
@@ -6,5 +6,5 @@ coverage: | |
threshold: 0.5% | ||
patch: | ||
default: | ||
target: 85% | ||
target: 50% | ||
threshold: 0.5% |
This file contains 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
This file contains 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
This file contains 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,8 @@ | ||
numpy | ||
pandas | ||
matplotlib | ||
seaborn | ||
sklearn | ||
ipython | ||
torch | ||
torchvision |
This file contains 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,10 @@ | ||
numpy | ||
pandas | ||
matplotlib | ||
seaborn | ||
sklearn | ||
ipython | ||
-f https://download.pytorch.org/whl/torch_stable.html | ||
torch==1.7.1+cpu | ||
-f https://download.pytorch.org/whl/torch_stable.html | ||
torchvision==0.8.2+cpu |
This file contains 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