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

[TOPI] Rename output tensors for better readability #3006

Merged
merged 4 commits into from
Apr 20, 2019

Conversation

merrymercy
Copy link
Member

@merrymercy merrymercy commented Apr 10, 2019

Current topi uses "tensor" as the name of output tensors.
This PR changes the names to more meaningful names for easier debugging.

cc @xqdan @sgrechanik-h

@merrymercy merrymercy requested review from eqy and srkreddy1238 April 11, 2019 05:13
topi/include/topi/transform.h Outdated Show resolved Hide resolved
topi/python/topi/nn/softmax.py Outdated Show resolved Hide resolved
topi/include/topi/transform.h Outdated Show resolved Hide resolved
topi/python/topi/nn/softmax.py Outdated Show resolved Hide resolved
@tqchen
Copy link
Member

tqchen commented Apr 18, 2019

@@ -1106,7 +1106,7 @@ inline Tensor arange(const Expr start,
inline Tensor layout_transform(const Tensor& src,
const std::string& src_layout,
const std::string& dst_layout,
const std::string name = "layout_transform",
const std::string name = "T_layout_trans",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const std::string name = "T_layout_trans",
const std::string name = "T_layout_transform",

Copy link
Member Author

Choose a reason for hiding this comment

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

For unambiguous long names, I would like abbreviations.

@tqchen
Copy link
Member

tqchen commented Apr 20, 2019

@tqchen tqchen merged commit 7e34988 into apache:master Apr 20, 2019
@tqchen
Copy link
Member

tqchen commented Apr 20, 2019

Thanks @sgrechanik-h , @merrymercy this is now merged!

@merrymercy merrymercy deleted the pr-topi-names branch April 21, 2019 07:24
wweic pushed a commit to wweic/tvm that referenced this pull request May 13, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants