-
Notifications
You must be signed in to change notification settings - Fork 22
updated arange to mgrid in tutorials and references #71
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
|
||
if_reduction = nl.arange(reduction_size)[None, :] | ||
_, if_reduction = nl.mgrid[0:1, 0:reduction_size] |
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.
Please check the AutoTest error message, this line seems to have indentation error.
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.
fixed indentation and pushed again :)
7296142
After reviewing my PR results, there's something I'd like to ask for anyone's opinion on. The changes I made from arange to mgrid in allocated_attention.py are correct (from what I can tell), however the indexing process is different: arange and mgrid are both used to generate ranges of indices, but they return different shapes and types: Should I switch back from mgrid to arange here? Or alter the indexing? (and for the latter, will that involve making changes to the test files as well?) |
Hi @mm-aws06! The When indexing a tensor of shape
The For
Thanks for raising the issue. We will look into provide more documentation on the usage of |
Issue #, if available:
<Fill ME>
Description of changes:
Updated arange to mgrid in tutorials and references
Testing:
Please see detailed unit test requirements in the CONTRIBUTING.md
nki.baremetal
nki.benchmark
Pull Request Checklist