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

[bug] MatrixType bug fix: Fix error with quant #6776

Merged
merged 6 commits into from Dec 2, 2022

Conversation

strongoier
Copy link
Contributor

Issue: #5819

Brief Summary

Quant types are not primitive types, so we should not make assertions that types only contain primitive types and tensor type. We just need to trigger scalarization when all the operands have TensorType.

@netlify
Copy link

netlify bot commented Nov 30, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit a875e16
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/6388c07921fcc6000997e534
😎 Deploy Preview https://deploy-preview-6776--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@jim19930609 jim19930609 left a comment

Choose a reason for hiding this comment

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

Let's check whether broadcasting is performed before scalarization

taichi/transforms/scalarize.cpp Outdated Show resolved Hide resolved
taichi/transforms/scalarize.cpp Outdated Show resolved Hide resolved
@strongoier strongoier merged commit a202762 into taichi-dev:master Dec 2, 2022
@strongoier strongoier deleted the mat-quant branch December 2, 2022 02:32
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
Issue: taichi-dev#5819

### Brief Summary

Quant types are not primitive types, so we should not make assertions
that types only contain primitive types and tensor type. We just need to
trigger scalarization when all the operands have `TensorType`.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Zhanlue Yang <zy2284@columbia.edu>
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