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

E2e implementation for aten.cat,aten.gather, aten.bmm #312

Merged
merged 1 commit into from
Sep 22, 2021

Conversation

cathyzhyi
Copy link
Contributor

@cathyzhyi cathyzhyi commented Sep 20, 2021

Also contain the following changes:

  • Remove derefineOp canonicalizer because it's not safe.
  • i64 dtype tensor arguement support for refbackend.
  • Support for optional tensor and list tensors in reduceOpVariant. This
    only works for some special detected and easy to handle cases. For list,
    it covers the case list is got from a ListConstruct. For optional, it
    covers the case optional is constructed from a DerefineOp.
  • Remove the inferReturnTypes for FromBuiltinTensorOp because it's
    not safe to deduce types from the input. For example, a built-in tensor
    of i8 could be converted to si8 or ui8. It's better to let the user
    specify the return type explicitly. Also, delete the getFromShaped from
    {Non,}ValueTensorType.

@cathyzhyi
Copy link
Contributor Author

cathyzhyi commented Sep 22, 2021

Need a fix in the upstream https://reviews.llvm.org/D110176 to make the CI pass.

Copy link
Contributor

@silvasean silvasean left a comment

Choose a reason for hiding this comment

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

nit: recommend removing {Non,}ValueTensorType::getFromShaped entirely.

@cathyzhyi cathyzhyi force-pushed the concat-gather-bmm branch 2 times, most recently from 872fed6 to 636f4fa Compare September 22, 2021 23:05
Also contains the following changes:
- Remove derefineOp canonicalizer because it's not safe.
- Support for optional tensor and list tensors in reduceOpVariant. This
only works for some special detected and easy to handle cases. For list,
it covers the case list is got from a `ListConstruct`. For optional, it
covers the case optional is constructed from a `DerefineOp`.
- Remove the `inferReturnTypes` for `FromBuiltinTensorOp` because it's
not safe to deduce types from the input. For example, a built-in tensor
of i8 could be converted to si8 or ui8. It's better to let the user
specify the return type explicitly.
@cathyzhyi cathyzhyi merged commit 603e068 into llvm:main Sep 22, 2021
qedawkins pushed a commit to nod-ai/torch-mlir that referenced this pull request Oct 3, 2022
* Use ubuntu focal for ppc64le.

* Rebuild prereq docker.

* Rebuild prereq docker.

* Limit ppc64le build to use two threads only.

* Rebuild prereq docker.
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.

2 participants