Skip to content
Merged
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
2 changes: 1 addition & 1 deletion torchao/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# dumped)".
# TODO(#2901, and before next torchao release): make this generic for
# future torchao and torch versions
if __version__.startswith("0.13.0") and torch.__version__ >= "2.9":
if __version__.startswith("0.13.0") and str(torch.__version__) >= "2.9":
logger.warning(
f"Skipping import of cpp extensions due to incompatible torch version {torch.__version__} for torchao version {__version__}"
)
Expand Down
Loading