Skip to content

[ONNX] export baddbmm#26901

Closed
neginraoof wants to merge 20 commits intopytorch:masterfrom
neginraoof:neraoof/baddbmm
Closed

[ONNX] export baddbmm#26901
neginraoof wants to merge 20 commits intopytorch:masterfrom
neginraoof:neraoof/baddbmm

Conversation

@neginraoof
Copy link
Copy Markdown
Contributor

@neginraoof neginraoof commented Sep 26, 2019

Adding symbolic for baddbmm export

@pytorchbot pytorchbot added the module: onnx Related to torch.onnx label Sep 26, 2019
@neginraoof
Copy link
Copy Markdown
Contributor Author

@BowenBao for review

@neginraoof
Copy link
Copy Markdown
Contributor Author

cc @houseroad I recreated this for baddbmm

Copy link
Copy Markdown

@spandantiwari spandantiwari left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Copy Markdown
Collaborator

@BowenBao BowenBao left a comment

Choose a reason for hiding this comment

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

LGTM, tests should pass now after removing the unnecessary parse_arg which restricts alpha/beta to be constants instead of values.
I wonder if we could export baddbmm with onnx::Gemm?

Comment thread torch/onnx/symbolic_opset9.py
Copy link
Copy Markdown
Member

@houseroad houseroad left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@neginraoof
Copy link
Copy Markdown
Contributor Author

We're not using onnx::Gemm since onnx documentation for Gemm mentions that alpha and beta are attributes for this op. However, using our subgraph instead, we can pass alpha and beta as dynamic inputs.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@houseroad merged this pull request in 6b9bcd0.

pdlive215 pushed a commit to pdlive215/pytorch that referenced this pull request Nov 27, 2019
Summary:
Adding symbolic for baddbmm export
Pull Request resolved: pytorch#26901

Reviewed By: hl475

Differential Revision: D17620967

Pulled By: houseroad

fbshipit-source-id: 3931dff5a4afdcb4a45d967fb0efaf84029c16e5
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Adding symbolic for baddbmm export
Pull Request resolved: pytorch#26901

Reviewed By: hl475

Differential Revision: D17620967

Pulled By: houseroad

fbshipit-source-id: 3931dff5a4afdcb4a45d967fb0efaf84029c16e5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants