You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PyTorch dependency is lacking a version constraint which may work fine right now, but there is no guarantee that Ignite will be compatible with any future major PyTorch release (e.g. PyTorch v2.x).
I suggest to constrain the PyTorch version that Ignite is compatible with, e.g. >=1.0,<2 or <2 if any 0.x and 1.x version works. If PyTorch has a new major release, even previous Ignite versions can become compatible with the new major PyTorch release (especially if no changes to the code are necessary) by making new bug fix releases with relaxed version constraints to include the new PyTorch version.
In my opinion, it is highly preferable to be conservative about dependency version constraints through a compatible release constraint in case the dependency conforms with semantic versioning. It is impossible to guarantee compatibility with a future major release of a dependency as its API can change arbitrarily.
The text was updated successfully, but these errors were encountered:
@sisp this makes sense, thanks for the suggestion !
Currently, we maintain and test the compatibility with the latest stable and nightly version of PyTorch.
Yes, I think we can add >=1.0,<2 as compatible release constrain.
馃悰 Bug description
PyTorch is a dependency of Ignite and, thus, is specified in
setup.py
ignite/setup.py
Lines 24 to 26 in 4b311cc
and
conda.recipe/meta.yaml
:ignite/conda.recipe/meta.yaml
Lines 15 to 23 in 4b311cc
The PyTorch dependency is lacking a version constraint which may work fine right now, but there is no guarantee that Ignite will be compatible with any future major PyTorch release (e.g. PyTorch v2.x).
I suggest to constrain the PyTorch version that Ignite is compatible with, e.g.
>=1.0,<2
or<2
if any0.x
and1.x
version works. If PyTorch has a new major release, even previous Ignite versions can become compatible with the new major PyTorch release (especially if no changes to the code are necessary) by making new bug fix releases with relaxed version constraints to include the new PyTorch version.In my opinion, it is highly preferable to be conservative about dependency version constraints through a compatible release constraint in case the dependency conforms with semantic versioning. It is impossible to guarantee compatibility with a future major release of a dependency as its API can change arbitrarily.
The text was updated successfully, but these errors were encountered: