Clean up Storage/StorageImpl constructors (#16948)
authorDmytro Dzhulgakov <dzhulgakov@fb.com>
Thu, 14 Feb 2019 06:38:24 +0000 (22:38 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 14 Feb 2019 06:58:32 +0000 (22:58 -0800)
commit3408d9de20dc73fc2cd64509d7b4341f76e3bb41
tree270e1d783b26e2219d58178b47839861467b0b45
parent11816affab86a69ee721047fdcaa1a0e3136e07c
Clean up Storage/StorageImpl constructors (#16948)

Summary:
Small cleanup while doing https://github.com/pytorch/pytorch/pull/16857:

- rename C2 constructors as create_legacy
- remove duplicated constructors
- make resizable flag non-default
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16948

Differential Revision: D14062755

Pulled By: dzhulgakov

fbshipit-source-id: 3b7b4ec9cdf67d2628cccc001156e040006b673e
aten/src/ATen/templates/TypeDefault.cpp
c10/core/Storage.h
c10/core/StorageImpl.h
c10/core/TensorImpl.h
caffe2/core/tensor.h
torch/csrc/jit/import.cpp