Skip to content

Conversation

colesbury
Copy link
Member

This seems to save a few percent in binary size in libcaffe2_gpu.so, but
the effect may not be real. In fact, deleting some functions can cause
the binary size to increase (perhaps due to alignment issues).

cc @orionr

This seems to save a few percent in binary size in libcaffe2_gpu.so, but
the effect may not be real. In fact, deleting some functions can cause
the binary size to increase (perhaps due to alignment issues).
Copy link
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.

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

if (ndim == 2)
{
THCTensor_(sum)(state, gradWeightBuf, gradInput, 0, 1);
THCTensor_(sum)(state, gradWeightBuf, gradInput, 0, 0);

This comment was marked as off-topic.

This comment was marked as off-topic.


THCudaCheck(cudaGetLastError());
auto out = at::Tensor(self_, true);
at::div_out(out, at::Tensor(src1, true), at::Tensor(src2, true));

This comment was marked as off-topic.

Copy link
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.

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

Copy link
Contributor

@gchanan gchanan left a comment

Choose a reason for hiding this comment

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

lgtm!

zdevito pushed a commit to zdevito/ATen that referenced this pull request Aug 23, 2018
Summary:
This seems to save a few percent in binary size in libcaffe2_gpu.so, but
the effect may not be real. In fact, deleting some functions can cause
the binary size to increase (perhaps due to alignment issues).

cc orionr
Pull Request resolved: pytorch/pytorch#10707

Differential Revision: D9409009

Pulled By: colesbury

fbshipit-source-id: 282931e562e84e316a33ac6da4788c04c2984f08
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
…10707)

Summary:
This seems to save a few percent in binary size in libcaffe2_gpu.so, but
the effect may not be real. In fact, deleting some functions can cause
the binary size to increase (perhaps due to alignment issues).

cc orionr
Pull Request resolved: pytorch#10707

Differential Revision: D9409009

Pulled By: colesbury

fbshipit-source-id: 282931e562e84e316a33ac6da4788c04c2984f08
@ezyang ezyang added the merged label Jun 26, 2019
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