Skip to content

Move easy THStorage functions out of generic.#9135

Closed
ezyang wants to merge 1 commit intopytorch:masterfrom
ezyang:pr/thstorage-degeneric
Closed

Move easy THStorage functions out of generic.#9135
ezyang wants to merge 1 commit intopytorch:masterfrom
ezyang:pr/thstorage-degeneric

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Jul 3, 2018

I didn't move any functions which actually needed to generate
real-specific code.

Signed-off-by: Edward Z. Yang ezyang@fb.com

I didn't move any functions which actually needed to generate
real-specific code.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
@ezyang ezyang requested a review from gchanan July 3, 2018 14:00
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.

@ezyang 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!

void THStorage_retain(THStorage *storage)
{
if(storage && (storage->flag & TH_STORAGE_REFCOUNTED))
++storage->refcount;

This comment was marked as off-topic.

This comment was marked as off-topic.

@ezyang
Copy link
Contributor Author

ezyang commented Jul 3, 2018

Rolled into #9136

@ezyang ezyang closed this Jul 3, 2018
facebook-github-bot pushed a commit that referenced this pull request Jul 3, 2018
Summary:
Some functions are exactly implemented in THStorage_; in that case,
we called those functions directly.

Stacked on #9135
Closes #9136

Reviewed By: Yangqing

Differential Revision: D8723998

Pulled By: ezyang

fbshipit-source-id: 653d23a5e1db4b9bdda50641fa97730894cc8ed5
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
Some functions are exactly implemented in THStorage_; in that case,
we called those functions directly.

Stacked on pytorch#9135
Closes pytorch#9136

Reviewed By: Yangqing

Differential Revision: D8723998

Pulled By: ezyang

fbshipit-source-id: 653d23a5e1db4b9bdda50641fa97730894cc8ed5
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.

3 participants