File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2+ # All rights reserved.
3+ #
4+ # This source code is licensed under the BSD 3-Clause license found in the
5+ # LICENSE file in the root directory of this source tree.
6+
17# Testing compatibility
28# We know that torchao .so files built using PyTorch 2.8.0 are not ABI compatible with PyTorch 2.9+. (see #2919)
39# If the version of torch is not compatible with the version of torchao,
Original file line number Diff line number Diff line change @@ -65,14 +65,19 @@ def _parse_version(version_string):
6565 v2_8_0 = _parse_version ("2.8.0" )
6666 v0_13_0 = _parse_version ("0.13.0" )
6767 v2_9_0_dev = _parse_version ("2.9.0.dev" )
68- v0_14_0_dev = _parse_version ("0.14.0.dev" )
68+ v0_14_0 = _parse_version ("0.14.0" )
69+ v2_10_0_dev = _parse_version ("2.10.0.dev" )
70+ v0_15_0_dev = _parse_version ("0.15.0.dev" )
6971
7072 if torch_version == v2_8_0 and torchao_version == v0_13_0 :
7173 # current torchao version and torch version, check here for clarity
7274 skip_loading_so_files = False
73- elif torch_version == v2_9_0_dev and torchao_version == v0_14_0_dev :
75+ elif torch_version == v2_9_0_dev and torchao_version == v0_14_0 :
7476 # .dev for nightlies since 2.9.0 and 0.14.0 has not been released
7577 skip_loading_so_files = False
78+ elif torch_version == v2_10_0_dev and torchao_version == v0_15_0_dev :
79+ # .dev for nightlies since 2.10.0 and 0.15.0 has not been released
80+ skip_loading_so_files = False
7681 else :
7782 skip_loading_so_files = True
7883
Original file line number Diff line number Diff line change 1- 0.14 .0
1+ 0.15 .0
You can’t perform that action at this time.
0 commit comments