Skip to content

[pt1][tensor] Remove New with Allocator Registry#12111

Closed
jerryzh168 wants to merge 44 commits intomasterfrom
export-D10022853
Closed

[pt1][tensor] Remove New with Allocator Registry#12111
jerryzh168 wants to merge 44 commits intomasterfrom
export-D10022853

Conversation

@jerryzh168
Copy link
Contributor

@jerryzh168 jerryzh168 commented Sep 26, 2018

Stack:
    :black_circle:  #12111 [pt1][tensor] Remove New with Allocator Registry  💛
    :white_circle:  #12304 [pt1][tensor] Remove ExtractDeviceOption from StaticContext  💚
    :white_circle:  #12305 [pt1][tensor] Remove StaticContext  💚
    :white_circle:  #12407 [pt1][tensor] caffe2::empty for Resize+mutable_data refactor  💛

Setup allocator registry keyed by at::DeviceType, and remove New from StaticContext.

Differential Revision: D10022853

Differential Revision: D9779821
Differential Version: 57806436
Differential Revision: D9779821
Differential Version: 58572220
Differential Revision: D9779821
Differential Version: 58709105
Differential Revision: D9779821
Differential Version: 58713403
Differential Revision: D9779821
Differential Version: 58748651
Differential Revision: D9889990
Differential Version: 58748485
Differential Revision: D9889990
Differential Version: 58751934
Differential Revision: D9889990
Differential Version: 58799279
Differential Revision: D10033396
Differential Version: 58815881
Differential Revision: D9889990
Differential Version: 58825947
Differential Revision: D10033396
Differential Version: 58835275
Differential Revision: D9889990
Differential Version: 58856304
Differential Revision: D10033396
Differential Version: 58856963
Differential Revision: D9889990
Differential Version: 58858304
Differential Revision: D9889990
Differential Version: 58875107
Differential Revision: D9889990
Differential Version: 58881242
Differential Revision: D10001033
Differential Version: 58937972
Differential Revision: D10022853
Differential Version: 58947676
Differential Revision: D10022853
Differential Version: 58951172
Differential Revision: D10033396
Differential Version: 59085834
Differential Revision: D10033396
Differential Version: 59088508
Differential Revision: D10033396
Differential Version: 59091126
Differential Revision: D9889990
Differential Version: 59110247
Differential Revision: D10033396
Differential Version: 59227528
Differential Revision: D9889990
Differential Version: 59236356
Differential Revision: D9889990
Differential Version: 59596351
Differential Revision: D9889990
Differential Version: 59619253
Differential Revision: D10001033
Differential Version: 59628521
Differential Revision: D10022853
Differential Version: 59629549
Differential Revision: D10022853
Differential Version: 59663517
Differential Revision: D9889990
Differential Version: 59666455
Differential Revision: D10001033
Differential Version: 59666456
Differential Revision: D10022853
Differential Version: 59668026
Differential Revision: D10022853
Differential Version: 59730149
@jerryzh168 jerryzh168 changed the base branch from export-D10001033 to master October 4, 2018 17:11
Differential Revision: D10022853
Differential Version: 59769948
Differential Revision: D10022853
Differential Version: 59783324
Differential Revision: D10022853
Differential Version: 59800206
@jerryzh168
Copy link
Contributor Author

@pytorchbot retest this please

// using AllocatorArray = std::array<
// std::unique_ptr<at::Allocator>,
// static_cast<int>(at::DeviceType::COMPILE_TIME_MAX_DEVICE_TYPES)>;
/** Set the allocator for DeviceType `t` and takes ownership of the allocator

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.

Wondering about ownership of these allocators.

Differential Revision: D10022853
Differential Version: 59886111
Differential Revision: D10022853
Differential Version: 59892819
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.

Excellent.

Differential Revision: D10022853
Differential Version: 60013750
@jerryzh168
Copy link
Contributor Author

@ezyang can you approve on phabricator as well?

zdevito pushed a commit to zdevito/ATen that referenced this pull request Oct 9, 2018
Summary:
Pull Request resolved: pytorch/pytorch#12111

Setup allocator registry keyed by at::DeviceType, and remove New from StaticContext.

Reviewed By: ezyang

Differential Revision: D10022853

fbshipit-source-id: 3e88a181fe5df24f33f49b88be1f75284a185588
gchanan pushed a commit to gchanan/pytorch that referenced this pull request Oct 10, 2018
Summary:
Pull Request resolved: pytorch#12111

Setup allocator registry keyed by at::DeviceType, and remove New from StaticContext.

Reviewed By: ezyang

Differential Revision: D10022853

fbshipit-source-id: 3e88a181fe5df24f33f49b88be1f75284a185588
gchanan pushed a commit to gchanan/pytorch that referenced this pull request Oct 10, 2018
Summary:
Pull Request resolved: pytorch#12111

Setup allocator registry keyed by at::DeviceType, and remove New from StaticContext.

Reviewed By: ezyang

Differential Revision: D10022853

fbshipit-source-id: 3e88a181fe5df24f33f49b88be1f75284a185588
@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.

2 participants