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] Improve misc error report related to passing ndarray to a kernel #7966

Merged
merged 1 commit into from
May 10, 2023

Conversation

ailzhang
Copy link
Contributor

@ailzhang ailzhang commented May 9, 2023

Issue: #6572

Brief Summary

🤖 Generated by Copilot at d1aa92d

Add new tests and error handling for ndarray feature. Improve __repr__ method for TensorType and error message for NdarrayType.

Walkthrough

🤖 Generated by Copilot at d1aa92d

  • Add a string representation method for tensor types (link)
  • Improve the error message for ndarray type validation (link)
  • Add tests for ndarray type mismatch scenarios (link, link)

@netlify
Copy link

netlify bot commented May 9, 2023

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit d1aa92d
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/645a289471bbbc0008b4f285
😎 Deploy Preview https://deploy-preview-7966--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.

@ailzhang ailzhang marked this pull request as ready for review May 10, 2023 01:48
Copy link
Contributor

@lin-hitonami lin-hitonami left a comment

Choose a reason for hiding this comment

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

LGTM

@ailzhang ailzhang merged commit 477a0c7 into taichi-dev:master May 10, 2023
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
…el (taichi-dev#7966)

Issue: taichi-dev#6572

### Brief Summary

<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at d1aa92d</samp>

Add new tests and error handling for ndarray feature. Improve `__repr__`
method for `TensorType` and error message for `NdarrayType`.

### Walkthrough

<!--
copilot:walkthrough
-->
### <samp>🤖 Generated by Copilot at d1aa92d</samp>

* Add a string representation method for tensor types
([link](https://github.com/taichi-dev/taichi/pull/7966/files?diff=unified&w=0#diff-78972e3ce6c462d977b9e713e447e8f3305899c8037a6992c37546aa0c4cb291L22-R25))
* Improve the error message for ndarray type validation
([link](https://github.com/taichi-dev/taichi/pull/7966/files?diff=unified&w=0#diff-06e0109e9fa5071f7d364306981845d410fa17425db48001e3ba69337b47c152L127-R127))
* Add tests for ndarray type mismatch scenarios
([link](https://github.com/taichi-dev/taichi/pull/7966/files?diff=unified&w=0#diff-ca3c8d1edb25b6a7f4affbb79b2e3e74f73b3757e5d465258ce42ea9eb09fbc0L6-R6),
[link](https://github.com/taichi-dev/taichi/pull/7966/files?diff=unified&w=0#diff-ca3c8d1edb25b6a7f4affbb79b2e3e74f73b3757e5d465258ce42ea9eb09fbc0R870-R910))
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