Skip to content

Conversation

@zdevito
Copy link
Contributor

@zdevito zdevito commented Jul 23, 2019

Stack from ghstack:

Differential Revision: D16446927

Memoize storages in pickler

gh-metadata: pytorch pytorch 23262 gh/zdevito/75/head
std::pair<at::Tensor, uint64_t> getWriteableTensor(const at::Tensor& tensor) {
at::Tensor storage_tensor = tensor;
uint64_t record_size = tensor.element_size() * tensor.storage().size();
WriteableTensorData getWriteableTensorData(const at::Tensor& tensor) {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this just be made the constructor of WriteableTensorData?

@zou3519 zou3519 deleted the gh/zdevito/75/head branch July 25, 2019 00:16
@facebook-github-bot
Copy link
Contributor

@zdevito merged this pull request in 7922b50.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants