Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fbgemm_gpu/fbgemm_gpu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# Based on the FBGEMM-PyTorch compatibility table at
# https://docs.pytorch.org/FBGEMM/general/Releases.html#fbgemm-releases-compatibility
_fbgemm_torch_compat_table = {
"1.4": "2.9",
"1.3": "2.8",
"1.2": "2.7",
"1.1": "2.6",
Expand Down Expand Up @@ -80,7 +81,7 @@ def _load_library(filename: str, version: str, no_throw: bool = False) -> None:
"""
)

elif str(torch.__version__) != _fbgemm_torch_compat_table[keys[0]]:
elif not str(torch.__version__).startswith(_fbgemm_torch_compat_table[keys[0]]):
logging.warning(
f"""
\033[31m
Expand Down
Loading