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

[Refactor] [lang] Deprecate x.data_type() and use x.dtype instead #1374

Merged

Conversation

archibate
Copy link
Collaborator

@archibate archibate commented Jul 2, 2020

@archibate archibate requested review from yuanming-hu, KLozes and taichi-gardener and removed request for yuanming-hu, KLozes and taichi-gardener July 2, 2020 04:58
@archibate archibate requested a review from k-ye July 3, 2020 14:42
@archibate
Copy link
Collaborator Author

Hello? I want to refactor .snode() too, so please review me so I can take it.

Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

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

Thank you! Sorry about my delay. meta.rst needs a bit more work, but the remaining are pretty good.

docs/vector.rst Outdated Show resolved Hide resolved
docs/meta.rst Outdated
@@ -17,55 +17,124 @@ Taichi kernels are *lazily instantiated* and a lot of computation can happen at
Template metaprogramming
Copy link
Member

Choose a reason for hiding this comment

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

I need to take a more careful pass on this part, which may take me a bit longer time. If you want to have this PR merged right now, could you move this file into a different PR? I'll take a look later. (Hopefully moving a single file isn't creating too much trouble for you... Sorry for being too busy these days...)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done, I'm super familiar with git revert these days, and may I merge this now?

@codecov

This comment has been minimized.

@archibate archibate changed the title [Refactor] [lang] Deprecate x.data_type(), use xdtype instead [Refactor] [lang] Deprecate x.data_type(), use x.dtype instead Jul 3, 2020
@yuanming-hu yuanming-hu changed the title [Refactor] [lang] Deprecate x.data_type(), use x.dtype instead [Refactor] [lang] Deprecate x.data_type() and use x.dtype instead Jul 3, 2020
@yuanming-hu yuanming-hu merged commit a6ad366 into taichi-dev:master Jul 3, 2020
@FantasyVR FantasyVR mentioned this pull request Jul 4, 2020
archibate added a commit that referenced this pull request Jul 17, 2020
* [Refactor] [lang] x.data_type() is deprecated, use x.dtype instead

* improve doc

* did deprecate

* fix

* [skip ci] enforce code format

* [skip ci] Update docs/vector.rst

Co-authored-by: Yuanming Hu <[email protected]>

* revert doc

* Revert "revert doc"

This reverts commit 0d3efb6.

* [skip ci] Apply suggestions from code review

Co-authored-by: Yuanming Hu <[email protected]>

* [skip ci] Update docs/meta.rst

Co-authored-by: Yuanming Hu <[email protected]>

* Update docs/meta.rst

Co-authored-by: Taichi Gardener <[email protected]>
Co-authored-by: Yuanming Hu <[email protected]>
@yuanming-hu yuanming-hu mentioned this pull request Jul 18, 2020
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.

[Lang] [refactor] dt or dtype for data type?
3 participants