Skip to content

[TENSOR MERGE] Tensor reorganization#9641

Merged
ezyang merged 5 commits intopytorch:tensor-mergefrom
ezyang:pr/tensor-reorg
Jul 20, 2018
Merged

[TENSOR MERGE] Tensor reorganization#9641
ezyang merged 5 commits intopytorch:tensor-mergefrom
ezyang:pr/tensor-reorg

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Jul 20, 2018

  • Delete nullary constructor on Tensor
  • Move THTensor* field to TensorImpl
  • Move methods from TensorDerived to TensorImpl

Successful test in #9632

ezyang added 5 commits July 20, 2018 09:05
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
@ezyang ezyang changed the title Tensor reorganization [TENSOR MERGE] Tensor reorganization Jul 20, 2018
@ezyang ezyang merged commit 277e42b into pytorch:tensor-merge Jul 20, 2018
@ezyang ezyang mentioned this pull request Jul 22, 2018
9 tasks

#include <ATen/Tensor.h>
#include <ATen/optional.h>
#include <ATen/Scalar.h>

This comment was marked as off-topic.

This comment was marked as off-topic.

}
virtual const char * toString() const = 0;
virtual IntList sizes() const = 0;
virtual IntList sizes() const;

This comment was marked as off-topic.

This comment was marked as off-topic.

@ezyang ezyang mentioned this pull request Jul 23, 2018
11 tasks
facebook-github-bot pushed a commit that referenced this pull request Jul 24, 2018
Summary:
Constituent PRs:

- [x] #9553 Remove unnecessary functions from StorageDerived.h (by cpuhrsch, reviewed by ezyang)
- [x] #9588 Use THTensor/Storage for THVoidTensor/Storage (by cpuhrsch , reviewed by gchanan)
- [x] #9627 Delete context from tensor (by ezyang, reviewed by gchanan)
- [x] #9641 Tensor reorganization (by ezyang, reviewed by gchanan )
- [x] #9647 Remove dim_ from THTensor (by cpuhrsch, reviewed by ezyang)
- [x] #9650 Remove context (by cpuhrsch, reviewed by gchanan and ezyang)
- [x] #9715 Fix Windows build in tensor merge PR (by ezyang, reviewed by gchanan and SsnL)

Upcoming PRs which didn't make this cut:

- [x] #9644 Stride move to TensorImpl, and nits (by ezyang, reviewed by gchanan)
- [ ] #9652 Native localScalar  (by ezyang, **UNREVIEWED AND FAILING TESTS**)
- [x] #9710 Devirtualize TensorImpl::toString (by ezyang, reviewed by gchanan)
- [ ] #9654 Use int64_t instead of ptrdiff_t for size / Rename flag to resizable_  (by cpuhrsch, **CHANGES REQUESTED AND FAILING TESTS**)
Pull Request resolved: #9713

Reviewed By: gchanan

Differential Revision: D8960882

Pulled By: ezyang

fbshipit-source-id: 99747b2c5462c7ff6809b67aacb4197626408204
jramseyer pushed a commit to jramseyer/pytorch that referenced this pull request Jul 30, 2018
Summary:
Constituent PRs:

- [x] pytorch#9553 Remove unnecessary functions from StorageDerived.h (by cpuhrsch, reviewed by ezyang)
- [x] pytorch#9588 Use THTensor/Storage for THVoidTensor/Storage (by cpuhrsch , reviewed by gchanan)
- [x] pytorch#9627 Delete context from tensor (by ezyang, reviewed by gchanan)
- [x] pytorch#9641 Tensor reorganization (by ezyang, reviewed by gchanan )
- [x] pytorch#9647 Remove dim_ from THTensor (by cpuhrsch, reviewed by ezyang)
- [x] pytorch#9650 Remove context (by cpuhrsch, reviewed by gchanan and ezyang)
- [x] pytorch#9715 Fix Windows build in tensor merge PR (by ezyang, reviewed by gchanan and SsnL)

Upcoming PRs which didn't make this cut:

- [x] pytorch#9644 Stride move to TensorImpl, and nits (by ezyang, reviewed by gchanan)
- [ ] pytorch#9652 Native localScalar  (by ezyang, **UNREVIEWED AND FAILING TESTS**)
- [x] pytorch#9710 Devirtualize TensorImpl::toString (by ezyang, reviewed by gchanan)
- [ ] pytorch#9654 Use int64_t instead of ptrdiff_t for size / Rename flag to resizable_  (by cpuhrsch, **CHANGES REQUESTED AND FAILING TESTS**)
Pull Request resolved: pytorch#9713

Reviewed By: gchanan

Differential Revision: D8960882

Pulled By: ezyang

fbshipit-source-id: 99747b2c5462c7ff6809b67aacb4197626408204
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
Constituent PRs:

- [x] pytorch#9553 Remove unnecessary functions from StorageDerived.h (by cpuhrsch, reviewed by ezyang)
- [x] pytorch#9588 Use THTensor/Storage for THVoidTensor/Storage (by cpuhrsch , reviewed by gchanan)
- [x] pytorch#9627 Delete context from tensor (by ezyang, reviewed by gchanan)
- [x] pytorch#9641 Tensor reorganization (by ezyang, reviewed by gchanan )
- [x] pytorch#9647 Remove dim_ from THTensor (by cpuhrsch, reviewed by ezyang)
- [x] pytorch#9650 Remove context (by cpuhrsch, reviewed by gchanan and ezyang)
- [x] pytorch#9715 Fix Windows build in tensor merge PR (by ezyang, reviewed by gchanan and SsnL)

Upcoming PRs which didn't make this cut:

- [x] pytorch#9644 Stride move to TensorImpl, and nits (by ezyang, reviewed by gchanan)
- [ ] pytorch#9652 Native localScalar  (by ezyang, **UNREVIEWED AND FAILING TESTS**)
- [x] pytorch#9710 Devirtualize TensorImpl::toString (by ezyang, reviewed by gchanan)
- [ ] pytorch#9654 Use int64_t instead of ptrdiff_t for size / Rename flag to resizable_  (by cpuhrsch, **CHANGES REQUESTED AND FAILING TESTS**)
Pull Request resolved: pytorch#9713

Reviewed By: gchanan

Differential Revision: D8960882

Pulled By: ezyang

fbshipit-source-id: 99747b2c5462c7ff6809b67aacb4197626408204
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