Skip to content

Use _th_ prefix instead of th_ prefix for Declarations.cwrap functions.#12889

Closed
gchanan wants to merge 2 commits intopytorch:masterfrom
gchanan:_th_prefix
Closed

Use _th_ prefix instead of th_ prefix for Declarations.cwrap functions.#12889
gchanan wants to merge 2 commits intopytorch:masterfrom
gchanan:_th_prefix

Conversation

@gchanan
Copy link
Copy Markdown
Contributor

@gchanan gchanan commented Oct 19, 2018

The plan here is that all functions in Declarations.cwrap will have a th prefix and a native funciton that calls into the th prefix version.

Then, we check in the generated Declarations.cwrap equivalents and kill Declarations.cwrap and the corresponding codegen.

This PR starts that process by moving some existing th_ prefixed functions to th.

Also kills th_tensor which isn't used anymore.

The plan here is that all functions in Declarations.cwrap will have a _th_ prefix and a native funciton that calls into the _th_ prefix version.
Then, we check in the generated Declarations.cwrap equivalents and kill Declarations.cwrap and the corresponding codegen.

This PR starts that process by moving some existing th_ prefixed functions to _th_.
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

gchanan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@gchanan
Copy link
Copy Markdown
Contributor Author

gchanan commented Oct 22, 2018

@pytorchbt retest this please.

@gchanan
Copy link
Copy Markdown
Contributor Author

gchanan commented Oct 22, 2018

@pytorchbot retest this please.

@gchanan gchanan closed this Oct 22, 2018
@gchanan gchanan reopened this Oct 22, 2018
@gchanan gchanan closed this Oct 22, 2018
@gchanan gchanan reopened this Oct 22, 2018
@yf225
Copy link
Copy Markdown
Contributor

yf225 commented Oct 22, 2018

@gchanan gchanan closed this Oct 22, 2018
@gchanan gchanan reopened this Oct 22, 2018
facebook-github-bot pushed a commit that referenced this pull request Oct 26, 2018
Summary:
This is the same as #12889 with the addmm changes stripped out, since that appears to cause onnx broadcasting issues I don't understand.
Pull Request resolved: #13128

Reviewed By: ezyang

Differential Revision: D10853911

Pulled By: gchanan

fbshipit-source-id: 08ec8629331972f0c332ccd036980fd9c87562b0
zdevito pushed a commit to zdevito/ATen that referenced this pull request Oct 26, 2018
Summary:
This is the same as pytorch/pytorch#12889 with the addmm changes stripped out, since that appears to cause onnx broadcasting issues I don't understand.
Pull Request resolved: pytorch/pytorch#13128

Reviewed By: ezyang

Differential Revision: D10853911

Pulled By: gchanan

fbshipit-source-id: 08ec8629331972f0c332ccd036980fd9c87562b0
@gchanan gchanan closed this Oct 31, 2018
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
)

Summary:
This is the same as pytorch#12889 with the addmm changes stripped out, since that appears to cause onnx broadcasting issues I don't understand.
Pull Request resolved: pytorch#13128

Reviewed By: ezyang

Differential Revision: D10853911

Pulled By: gchanan

fbshipit-source-id: 08ec8629331972f0c332ccd036980fd9c87562b0
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.

4 participants