Skip to content

[export] inline into torch.jit.traced nn module #155381

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

Open
wants to merge 1 commit into
base: gh/ydwu4/259/base
Choose a base branch
from

Conversation

ydwu4
Copy link
Contributor

@ydwu4 ydwu4 commented Jun 6, 2025

Copy link

pytorch-bot bot commented Jun 6, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/155381

Note: Links to docs will display an error until the docs builds have been completed.

❌ 31 New Failures, 1 Unrelated Failure

As of commit 8986294 with merge base 3f34d26 (image):

NEW FAILURES - The following jobs have failed:

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

ydwu4 added a commit that referenced this pull request Jun 7, 2025
ghstack-source-id: 4798f3f
Pull Request resolved: #155381
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jun 7, 2025
@@ -260,7 +260,6 @@ def make_fake_inputs(
args,
kwargs,
dynamic_shapes,
_is_torch_jit_trace=False,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noice!!

def __init__(self, mod):
self.mod = mod

script_module._orig_module = Wrapped(obj)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to wrap it?

@@ -1318,6 +1318,7 @@ def register_submods(mod, prefix):
finally:
torch.jit._trace._trace_module_map = old_module_map

module.forward._original_forward = mod.forward
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably should put a comment explaining this change. How does serializing/deserializing work here?

Copy link
Contributor

github-actions bot commented Aug 8, 2025

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the Stale label Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/inductor oncall: jit Add this issue/PR to JIT oncall triage queue release notes: export Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants