-
Notifications
You must be signed in to change notification settings - Fork 75
Change c10::irange to iota, part 1 #4105
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
base: main
Are you sure you want to change the base?
Conversation
|
Review updated until commit 4fe0d8d Description
Changes walkthrough 📝
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
!test --diff |
|
There are failures, moving to draft |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (15)
- csrc/compute_at.cpp: Language not supported
- csrc/contiguity.cpp: Language not supported
- csrc/evaluator_common.cpp: Language not supported
- csrc/expr_evaluator.cpp: Language not supported
- csrc/expr_simplifier.cpp: Language not supported
- csrc/ir/base_nodes.cpp: Language not supported
- csrc/mutator.cpp: Language not supported
- csrc/polymorphic_value.cpp: Language not supported
- csrc/predicate_compute.cpp: Language not supported
- csrc/preseg_passes/translate_no_reduction_matmul_to_mul_squeeze.cpp: Language not supported
- csrc/python_frontend/segmentation.cpp: Language not supported
- csrc/python_frontend/translation.cpp: Language not supported
- csrc/runtime/executor.cpp: Language not supported
- csrc/transform_rfactor.cpp: Language not supported
- csrc/transform_view.cpp: Language not supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried this was cursor and it was taking awhile. 😢
Prompt: "Replace c10::irange with std::views::iota"
It looks like it was searching for the c10::irange function definition to do an intelligent replace. Probably should add pytorch/c10/util/irange.h to the context.
I also tried asking for a simple string match replace and it defaulted to its original approach.
|
iota expects the types for both integer arguments to match. This is kinda annoying for the human or AI agent. |
rdspring1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid merging with test failures.
This is a perfect task to ask AI agent to work on.