8000 Suppress more warnings by tugsbayasgalan · Pull Request #148488 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Suppress more warnings #148488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update on "Suppress more warnings"
[ghstack-poisoned]
  • Loading branch information
tugsbayasgalan committed Mar 5, 2025
commit dd75b887b5a630f04dbf195e9f24d40279d87ad0
3 changes: 3 additions & 0 deletions torch/export/_unlift.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def _unlift_inputs_as_getattr(

else:
with gm.graph.inserting_after(input_node):
# It is fine to ignore this warning because
# it is guaranteed that we will populate this
# attr later.
with warnings.catch_warnings():
warnings.simplefilter("ignore")
getattr_node = gm.graph.get_attr(lifted_node)
Expand Down
3 changes: 1 addition & 2 deletions torch/fx/experimental/proxy_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import traceback
import typing
import typing_extensions
import warnings
import weakref
from collections import defaultdict
from collections.abc import Generator, Mapping, Sequence
Expand Down Expand Up @@ -1799,7 +1798,7 @@ def call_module(
try:
return Tracer.call_module(self, m, forward, args, kwargs)
except _ModuleNotInstalledAsSubmoduleError:
warnings.warn(
log.debug(
f"Unable to find the path of the module {m}. "
"This might be because the module was not properly registered "
"as a submodule, which is not good practice. We will trace "
Expand Down
Loading
0