Skip to content

Refactor: extract OperatorArgsKwargsView from parseIValuesToPyArgsKwargs#166368

Closed
swolchok wants to merge 11 commits intogh/swolchok/860/basefrom
gh/swolchok/860/head
Closed

Refactor: extract OperatorArgsKwargsView from parseIValuesToPyArgsKwargs#166368
swolchok wants to merge 11 commits intogh/swolchok/860/basefrom
gh/swolchok/860/head

Conversation

@swolchok
Copy link
Contributor

@swolchok swolchok commented Oct 28, 2025

Stack from ghstack (oldest at bottom):

Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 28, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit b254708 with merge base 84776e1 (image):

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.

…rom parseIValuesToPyArgsKwargs"

Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

[ghstack-poisoned]
…ToPyArgsKwargs"

Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

[ghstack-poisoned]
…act OperatorArgsKwargsView from parseIValuesToPyArgsKwargs"

Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

[ghstack-poisoned]
@swolchok swolchok requested a review from ezyang October 31, 2025 00:06
@swolchok
Copy link
Contributor Author

noting for reviewers that CI is currently green

…xtract OperatorArgsKwargsView from parseIValuesToPyArgsKwargs"

Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

[ghstack-poisoned]
…ToPyArgsKwargs"

Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

[ghstack-poisoned]
…. fix our "upcall" from Python to DTensor dispatch key to be an explicit redispatch so that the preceding fix doesn't break it. on "Refactor: extract OperatorArgsKwargsView from parseIValuesToPyArgsKwargs"

Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

[ghstack-poisoned]
…rseIValuesToPyArgsKwargs"

Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

[ghstack-poisoned]
…peratorArgsKwargsView from parseIValuesToPyArgsKwargs"

Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

[ghstack-poisoned]
…eIValuesToPyArgsKwargs"

Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

[ghstack-poisoned]
…ToPyArgsKwargs"

Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

[ghstack-poisoned]
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

nit on the comment.
But if CI Is happy, I'm happy!

// ^- kwarg_only_start
// ^- positional_default_start
// ^- 0
int64_t positional_default_start_;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this in the middle of the existing comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I intentionally broke it up into two comments: one comment explaining the member variables of OperatorArgsKwargsView and another one explaining what's going on in the constructor.

@swolchok
Copy link
Contributor Author

swolchok commented Nov 6, 2025

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 6, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Khanaksahu pushed a commit to Khanaksahu/pytorch that referenced this pull request Nov 17, 2025
Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

ghstack-source-id: 08381e1
Pull Request resolved: pytorch/pytorch#166368
Khanaksahu pushed a commit to Khanaksahu/pytorch that referenced this pull request Nov 17, 2025
Intended to make it easier to reuse this logic for processing operator arguments as IValues in following PR(s).

Testing: python test/test_python_dispatch.py (broke during development, seems to work now)

ghstack-source-id: 45a3f63
Pull Request resolved: pytorch/pytorch#166368
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants