Skip to content

Conversation

@a3213105
Copy link
Contributor

@a3213105 a3213105 commented Nov 4, 2024

When fill_index op's param dim==0, there is no need to unsqueeze the index tensor's dimension. So we return index tensor directly if ths size of axes_i == 0

Fixes #139594

When fill_index op's param dim==0, there is no need to unsqueeze the index tensor's dimension.
So we return index tensor directly if ths size of axes_i == 0
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 4, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 6777591 with merge base 86db2cd (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the release notes: onnx torch.onnx related changes that should show up in the release notes label Nov 4, 2024
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 4, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@justinchuby justinchuby added the module: onnx Related to torch.onnx label Nov 4, 2024
@justinchuby
Copy link
Collaborator

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 6, 2024
@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

@a3213105 a3213105 deleted the index_fill_export_onnx_issue branch December 2, 2024 06:43
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
…s met dim=0 pytorch#139594 (pytorch#139596)

When fill_index op's param dim==0, there is no need to unsqueeze the index tensor's dimension. So we return index tensor directly if ths size of axes_i == 0

Fixes pytorch#139594

Pull Request resolved: pytorch#139596
Approved by: https://github.com/justinchuby
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 module: onnx Related to torch.onnx open source release notes: onnx torch.onnx related changes that should show up in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ONNX export] exporting model to onnx error when tensor.index_fill ops met dim=0

4 participants