Skip to content

example can not run successfully #107681

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

Closed
jayggh opened this issue Aug 22, 2023 · 1 comment
Closed

example can not run successfully #107681

jayggh opened this issue Aug 22, 2023 · 1 comment
Labels
actionable module: advanced indexing Related to x[i] = y, index functions triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@jayggh
Copy link

jayggh commented Aug 22, 2023

📚 The doc issue

https://pytorch.org/docs/main/generated/torch.slice_scatter.html#torch-slice-scatter In this page, the example can not run successfully. The error is "RuntimeError: expected src to have a size equal to the slice of self. src size = [8], slice size = [2, 8]"

Suggest a potential alternative/fix

No response

@cpuhrsch cpuhrsch added triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module module: advanced indexing Related to x[i] = y, index functions labels Aug 22, 2023
@mikaylagawarecki
Copy link
Contributor

actionable to update the docs for torch.slice_scatter with an example that works

voznesenskym pushed a commit that referenced this issue Aug 27, 2023
Fixes #107681
fix the example of torch.slice_scatter
Pull Request resolved: #107849
Approved by: https://github.com/drisspg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable module: advanced indexing Related to x[i] = y, index functions triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants