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] Make slicing a single row/column of a matrix return a vector #7068

Merged
merged 3 commits into from
Jan 6, 2023

Conversation

strongoier
Copy link
Contributor

Issue: #6978, fix #6902

@netlify
Copy link

netlify bot commented Jan 5, 2023

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 210f177
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63b77e4ce01b9600091997f3
😎 Deploy Preview https://deploy-preview-7068--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.

@strongoier strongoier merged commit 2d1ff82 into taichi-dev:master Jan 6, 2023
@strongoier strongoier deleted the fix-6978 branch January 6, 2023 05:50
PGZXB pushed a commit to PGZXB/taichi that referenced this pull request Jan 6, 2023
…aichi-dev#7068)

Issue: taichi-dev#6978, fix taichi-dev#6902

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@strongoier strongoier added this to the v1.4.0 milestone Jan 6, 2023
strongoier added a commit that referenced this pull request Jan 9, 2023
Issue: fix #6978

### Brief Summary

After #7068, The `taichi_ngp` example reports `RuntimeError:
[type_factory.cpp:promoted_type@222] Assertion failure:
a->is<TensorType>() && b->is<TensorType>()`. The root cause is that
`taichi_ngp` uses `atomic_sub` on a value with type different from the
destination, which will generate `neg` + `cast`. However, the `ret_type`
and `cast_type` of `UnaryOpStmt` produced by `Scalarize` aren't set
correctly. This PR fixes the problem.
lin-hitonami pushed a commit to lin-hitonami/taichi that referenced this pull request Jan 9, 2023
…aichi-dev#7068)

Issue: taichi-dev#6978, fix taichi-dev#6902

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
lin-hitonami pushed a commit to lin-hitonami/taichi that referenced this pull request Jan 9, 2023
…dev#7082)

Issue: fix taichi-dev#6978

### Brief Summary

After taichi-dev#7068, The `taichi_ngp` example reports `RuntimeError:
[type_factory.cpp:promoted_type@222] Assertion failure:
a->is<TensorType>() && b->is<TensorType>()`. The root cause is that
`taichi_ngp` uses `atomic_sub` on a value with type different from the
destination, which will generate `neg` + `cast`. However, the `ret_type`
and `cast_type` of `UnaryOpStmt` produced by `Scalarize` aren't set
correctly. This PR fixes the problem.
lin-hitonami pushed a commit to lin-hitonami/taichi that referenced this pull request Jan 12, 2023
…aichi-dev#7068)

Issue: taichi-dev#6978, fix taichi-dev#6902

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
lin-hitonami pushed a commit to lin-hitonami/taichi that referenced this pull request Jan 12, 2023
…dev#7082)

Issue: fix taichi-dev#6978

### Brief Summary

After taichi-dev#7068, The `taichi_ngp` example reports `RuntimeError:
[type_factory.cpp:promoted_type@222] Assertion failure:
a->is<TensorType>() && b->is<TensorType>()`. The root cause is that
`taichi_ngp` uses `atomic_sub` on a value with type different from the
destination, which will generate `neg` + `cast`. However, the `ret_type`
and `cast_type` of `UnaryOpStmt` produced by `Scalarize` aren't set
correctly. This PR fixes the problem.
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
…aichi-dev#7068)

Issue: taichi-dev#6978, fix taichi-dev#6902

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
…dev#7082)

Issue: fix taichi-dev#6978

### Brief Summary

After taichi-dev#7068, The `taichi_ngp` example reports `RuntimeError:
[type_factory.cpp:promoted_type@222] Assertion failure:
a->is<TensorType>() && b->is<TensorType>()`. The root cause is that
`taichi_ngp` uses `atomic_sub` on a value with type different from the
destination, which will generate `neg` + `cast`. However, the `ret_type`
and `cast_type` of `UnaryOpStmt` produced by `Scalarize` aren't set
correctly. This PR fixes the problem.
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.

What's the best way to extract a vector from a matrix?
2 participants