Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit e2d22ca

Browse files
committed
increase torch version to 1.0.0
1 parent a84420d commit e2d22ca

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

NEWS.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Release Notes
22

3-
This release supports Pytorch >= 0.4.1 including the recent 1.0 release.
3+
This release supports Pytorch >= 0.4.1 including the recent 1.0 release. The relevant
4+
`setup.py` and `environment.yml` files will default to `1.0.0` installation.
45

56
### v4.0.0 (18/12/2018)
67
- **Critical**: `NumpyDataset` now returns tensors of shape `HxW, N, C` for 3D/4D convolutional features, `1, N, C` for 2D feature files. Models should be adjusted to adapt to this new shaping.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If you use **nmtpytorch**, you may want to cite the following [paper](https://uf
4141

4242
## Installation
4343

44-
`nmtpytorch` currently requires `python>=3.6` and `torch==0.4.1`.
44+
`nmtpytorch` currently requires `python>=3.6` and `torch>=0.4.1`.
4545
We are not planning to support Python 2.x.
4646

4747
**IMPORTANT:** After installing `nmtpytorch`, you **need** to run `nmtpy-install-extra`
@@ -58,7 +58,7 @@ $ pip install nmtpytorch
5858
```
5959

6060
This will automatically fetch and install the dependencies as well. For the `torch`
61-
dependency it will specifically install the `torch 0.4.1` package from `PyPI` that
61+
dependency it will specifically install the `torch 1.0.0` package from `PyPI` that
6262
ships `CUDA 9.0` within.
6363

6464
### conda

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_nmtpytorch_version():
4545
python_requires='~=3.6',
4646
install_requires=[
4747
'numpy', 'scipy', 'scikit-learn', 'tqdm', 'pillow',
48-
'torch>=0.4.1', 'torchvision==0.2.1',
48+
'torch==1.0.0', 'torchvision==0.2.1',
4949
'sacrebleu>=1.2.9', 'tensorboardX==1.1',
5050
'editdistance==0.4', 'subword_nmt==0.3.5',
5151
],

0 commit comments

Comments
 (0)