Skip to content
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

Support aten.stack op and decompose it into unsqueeze & cat #1747

Merged
merged 1 commit into from
Mar 11, 2023

Conversation

li-plus
Copy link
Collaborator

@li-plus li-plus commented Dec 22, 2022

This PR added aten.stack op, which will be decomposed into multiple aten.unsqueeze ops to create a new dimension for input tensors, and then a aten.cat op to concatenate the tensor list along the given dimension.

@li-plus li-plus force-pushed the stack-op branch 3 times, most recently from 405820e to e12200a Compare December 22, 2022 14:12
pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Mar 7, 2023
As @ramiro050 requested in llvm/torch-mlir#1747, this PR moved the shape code for stack op from torch-mlir to pytorch upstream.

Pull Request resolved: #92205
Approved by: https://github.com/eellison
@li-plus li-plus force-pushed the stack-op branch 4 times, most recently from cfc1b6f to 3f98c61 Compare March 10, 2023 14:11
Copy link
Collaborator

@ramiro050 ramiro050 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one change request

lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp Outdated Show resolved Hide resolved
ydwu4 pushed a commit to ydwu4/pytorch that referenced this pull request Mar 10, 2023
As @ramiro050 requested in llvm/torch-mlir#1747, this PR moved the shape code for stack op from torch-mlir to pytorch upstream.

Pull Request resolved: pytorch#92205
Approved by: https://github.com/eellison
@li-plus li-plus merged commit 4912c39 into llvm:main Mar 11, 2023
@li-plus li-plus deleted the stack-op branch March 11, 2023 01:26
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 12, 2023
As @ramiro050 requested in llvm/torch-mlir#1747, this PR moved the shape code for stack op from torch-mlir to pytorch upstream.

Pull Request resolved: pytorch/pytorch#92205
Approved by: https://github.com/eellison
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 12, 2023
As @ramiro050 requested in llvm/torch-mlir#1747, this PR moved the shape code for stack op from torch-mlir to pytorch upstream.

Pull Request resolved: pytorch/pytorch#92205
Approved by: https://github.com/eellison
ydwu4 added a commit to ydwu4/pytorch that referenced this pull request Mar 13, 2023
As @ramiro050 requested in llvm/torch-mlir#1747, this PR moved the shape code for stack op from torch-mlir to pytorch upstream.

Pull Request resolved: pytorch#92205
Approved by: https://github.com/eellison
gpetters94 pushed a commit to gpetters94/mlir-npcomp that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants