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

[lang] Migrate TensorType expansion for subscription indices from Python to Frontend IR #6942

Merged
merged 25 commits into from
Jan 5, 2023

Conversation

jim19930609
Copy link
Contributor

@jim19930609 jim19930609 commented Dec 21, 2022

Issue: #5819

Brief Summary

For indices of TensorType, instead of scalarizing them at Python level, it is up to the Frontend IR's consumer to decide whether TensorType'd indices are acceptable and if we should have it scalarized.

This PR removes expand_expr in Expression subscription and migrate the scalarization logics to the following constructors:

  1. MeshIndexConversionExpression::MeshIndexConversionExpression
  2. IndexExpression::IndexExpression

@netlify
Copy link

netlify bot commented Dec 21, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 1e2b48c
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63b4f35c11a329000802dbaf
😎 Deploy Preview https://deploy-preview-6942--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.

python/taichi/lang/impl.py Outdated Show resolved Hide resolved
python/taichi/lang/impl.py Outdated Show resolved Hide resolved
python/taichi/lang/impl.py Show resolved Hide resolved
python/taichi/lang/impl.py Outdated Show resolved Hide resolved
taichi/ir/frontend_ir.cpp Show resolved Hide resolved
taichi/ir/frontend_ir.cpp Outdated Show resolved Hide resolved
taichi/ir/frontend_ir.cpp Outdated Show resolved Hide resolved
taichi/ir/frontend_ir.cpp Outdated Show resolved Hide resolved
taichi/ir/frontend_ir.cpp Outdated Show resolved Hide resolved
taichi/ir/frontend_ir.cpp Outdated Show resolved Hide resolved
@jim19930609 jim19930609 requested a review from strongoier January 4, 2023 01:33
@jim19930609 jim19930609 merged commit a7b7a2f into taichi-dev:master Jan 5, 2023
feisuzhu pushed a commit to feisuzhu/taichi that referenced this pull request Jan 5, 2023
…hon to Frontend IR (taichi-dev#6942)

Issue: taichi-dev#5819

### Brief Summary
For indices of TensorType, instead of scalarizing them at Python level,
it is up to the Frontend IR's consumer to decide whether TensorType'd
indices are acceptable and if we should have it scalarized.

This PR removes `expand_expr` in Expression subscription and migrate the
scalarization logics to the following constructors:

1. MeshIndexConversionExpression::MeshIndexConversionExpression
2. IndexExpression::IndexExpression
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
…hon to Frontend IR (taichi-dev#6942)

Issue: taichi-dev#5819

### Brief Summary
For indices of TensorType, instead of scalarizing them at Python level,
it is up to the Frontend IR's consumer to decide whether TensorType'd
indices are acceptable and if we should have it scalarized.

This PR removes `expand_expr` in Expression subscription and migrate the
scalarization logics to the following constructors:

1. MeshIndexConversionExpression::MeshIndexConversionExpression
2. IndexExpression::IndexExpression
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