Pass ScalarType separately from Type in python constructors
authorRoy Li <royboy@fb.com>
Thu, 4 Apr 2019 09:21:09 +0000 (02:21 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 4 Apr 2019 09:24:20 +0000 (02:24 -0700)
commitd70c6f23f40bab5baf88a62cfd045abac4335b39
tree80c82d690a9cb0c0914b8f60a36a0b5f0b6947e0
parentf5741eb855f8cc016da4a7a166ed6babf8f3de40
Pass ScalarType separately from Type in python constructors

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17786

Reviewed By: ezyang

Differential Revision: D14379075

fbshipit-source-id: 3abf066563b789a30cafe5b0c868a41326f5b833
tools/autograd/templates/python_torch_functions.cpp
tools/autograd/templates/python_torch_functions_dispatch.h
tools/autograd/templates/python_variable_methods.cpp
torch/csrc/autograd/python_variable.cpp
torch/csrc/autograd/python_variable_indexing.cpp
torch/csrc/tensor/python_tensor.cpp
torch/csrc/tensor/python_tensor.h
torch/csrc/utils/tensor_new.cpp
torch/csrc/utils/tensor_new.h