Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump minimal torch version to 1.7 #176

Merged
merged 4 commits into from Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -81,14 +81,14 @@ jobs:
stage: Test multiple python versions
python: "3.8"

- name: "Compile and test. Python 3.6, Torch 1.5"
- name: "Compile and test. Python 3.6, Torch 1.7.1"
<<: *job_compile_common
stage: Test multiple python versions
python: "3.6"
install:
# Set the python executable, to force cmake picking the right one.
- PYTHON_EXECUTABLE=~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python$TRAVIS_PYTHON_VERSION
- pip install "torch==1.5.1"
- pip install "torch==1.7.1"
- pip install -r requirements.txt pytest
# Install the package in editable mode.
- VERBOSE=1 pip install -v -e ".[visualization]"
Expand Down
10 changes: 8 additions & 2 deletions CHANGELOG.md
Expand Up @@ -53,7 +53,12 @@ The format is based on [Keep a Changelog], and this project adheres to
update. (\#159)
* A new `aihwkit.experiments` module has been added that allows creating and
running specific high-level use cases (for example, neural network training)
conveniently. (\#171, \#172)
conveniently. (\#171, \#172)

#### Changed

* The minimal PyTorch version has been bumped to `1.7+`. Please recompile your
library and update the dependencies accordingly. (\#176)

#### Fixed

Expand All @@ -71,8 +76,9 @@ The format is based on [Keep a Changelog], and this project adheres to
caused a floating point exception. (\174)
* Ceil instead of round for very small transfers in `TransferCompound`
(to avoid zero transfer for extreme settings). (\#174)

#### Removed

* The legacy `NumpyAnalogTile` and `NumpyFloatingPointTile` tiles have been
finally removed. The regular, tensor-powered `aihwkit.simulator.tiles` tiles
contain all their functionality and numerous additions. (\#122)
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
@@ -1,5 +1,5 @@
Sphinx==3.1.2
sphinx-rtd-theme==0.5.0
recommonmark==0.6.0
torch>=1.5
torch>=1.7
matplotlib
2 changes: 1 addition & 1 deletion docs/source/advanced_install.rst
Expand Up @@ -35,7 +35,7 @@ C++11 compatible compiler
`scikit-build`_ 0.11.0+
`Python 3 development headers`_ 3.6+
BLAS implementation `OpenBLAS`_ or `Intel MKL`_
`PyTorch`_ 1.5+ The libtorch library and headers are needed [#f1]_
`PyTorch`_ 1.7+ The libtorch library and headers are needed [#f1]_
`OpenMP`_ 11.0.0+ Optional, OpenMP library and headers [#f2]_
CUDA 9.0+ Optional, for GPU-enabled simulator
`Nvidia CUB`_ 1.8.0 Optional, for GPU-enabled simulator [#f4]_
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -3,7 +3,7 @@ cmake>=3.18
scikit-build>=0.11.1
pybind11>=2.6.2
# Runtime dependencies.
torch>=1.5
torch>=1.7
torchvision
scipy
requests>=2.25,<3
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -16,7 +16,7 @@
from skbuild import setup

INSTALL_REQUIRES = [
'torch{}'.format(os.getenv('TORCH_VERSION_SPECIFIER', '>=1.5')),
'torch{}'.format(os.getenv('TORCH_VERSION_SPECIFIER', '>=1.7')),
'torchvision',
'scipy',
'requests>=2.25,<3',
Expand Down