Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Check that stem input is 1D#30233
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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've not analyzed the details, but is_check_1d
compatible with unit hanling?hlines
/vlines
do_proces_unit_info
as their first task.
I did insert this after |
This also has the side-effect of casting torch Tensors to NumPy arrays,whichfixesmatplotlib#30216. Since `stem` is made up of `plot` and `[hv]lines`whic already do this cast, this just moves it up one level whichprevents doing it twice.
947590d
intomatplotlib:mainUh oh!
There was an error while loading.Please reload this page.
…233-on-v3.10.xBackport PR#30233 on branch v3.10.x (Check that stem input is 1D)
PR summary
This also has the side-effect of casting torch Tensors to NumPy arrays, whichfixes#30216. Since
stem
is made up ofplot
and[hv]lines
whic already do this cast, this just moves it up one level which prevents doing it twice.We don't have any testing with torch directly, so I didn't add any of that sort.
PR checklist