Skip to content

Make StorageImpl member variables largely private and use getters and setters#10074

Closed
cpuhrsch wants to merge 3 commits intopytorch:masterfrom
cpuhrsch:storgetters
Closed

Make StorageImpl member variables largely private and use getters and setters#10074
cpuhrsch wants to merge 3 commits intopytorch:masterfrom
cpuhrsch:storgetters

Conversation

@cpuhrsch
Copy link
Contributor

@cpuhrsch cpuhrsch commented Jul 31, 2018

No description provided.

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.

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

@cpuhrsch cpuhrsch force-pushed the storgetters branch 2 times, most recently from d5de698 to 25a1b8d Compare July 31, 2018 21:40

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@cpuhrsch cpuhrsch force-pushed the storgetters branch 2 times, most recently from b71c576 to b782a30 Compare July 31, 2018 22:36
@cpuhrsch
Copy link
Contributor Author

I'm going to try applying the suggested changes, but more likely than not i'll need to close this and do one member variable at a time.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

leaks memory

@cpuhrsch cpuhrsch force-pushed the storgetters branch 2 times, most recently from f132403 to 8765698 Compare August 1, 2018 19:55
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.

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

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

There are some hokey bits but I'm OK leaving them for follow ups.

return 1;
}

int THTensor_(isSize)(const THTensor *self, const THLongStorage *dims)

This comment was marked as off-topic.

return THCTensor_isContiguous(state, self);
}

int THCTensor_(isSize)(THCState *state, const THCTensor *self, const THLongStorage *dims)

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.

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

zdevito pushed a commit to zdevito/ATen that referenced this pull request Aug 3, 2018
… setters

Summary: Pull Request resolved: pytorch/pytorch#10074

Differential Revision: D9086887

Pulled By: cpuhrsch

fbshipit-source-id: d2dd0d6a1b71d0f864aefb64cd1daefd11dcfb91
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
… setters

Summary: Pull Request resolved: pytorch#10074

Differential Revision: D9086887

Pulled By: cpuhrsch

fbshipit-source-id: d2dd0d6a1b71d0f864aefb64cd1daefd11dcfb91
@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