Skip to content

Commit 1e487c2

Browse files
committed
change missing ops printout back to debug (#2921)
Summary: Undoes part of #2908 to make the message about missing `.so` files be a debug print instead of a warning. Reason: this always happens for builds without executorch ops. Keeps the version mismatch log as a warning. Test Plan: Make this change locally in an install of torchao on an H100, verify warning no longer prints. Reviewers: Subscribers: Tasks: Tags:
1 parent adb8f1a commit 1e487c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchao/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
# For more information, see https://github.com/pytorch/ao/blob/main/torchao/experimental/docs/readme.md
5959
from torchao.experimental.op_lib import * # noqa: F403
6060
except Exception as e:
61-
logger.warning(f"Skipping import of cpp extensions: {e}")
61+
logger.debug(f"Skipping import of cpp extensions: {e}")
6262

6363
from torchao.quantization import (
6464
autoquant,

0 commit comments

Comments
 (0)