Add at::scalar_tensor factory function, use it instead of Type.scalar… (#15074)
authorGregory Chanan <gchanan@fb.com>
Wed, 12 Dec 2018 04:35:37 +0000 (20:35 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 12 Dec 2018 04:37:41 +0000 (20:37 -0800)
commitbff6d42ceff95a576610d2cfb3c7bc1978064ac5
tree4a75881c861a50f8c92233d1c9f48ba1306bdd08
parentb7106429697bf6a9e374d68aef839cbcfdfd3bf6
Add at::scalar_tensor factory function, use it instead of Type.scalar… (#15074)

Summary:
…_tensor.

This is part of a long series of paring down the Type interface.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15074

Differential Revision: D13421482

Pulled By: gchanan

fbshipit-source-id: 84010ee71fef2cb74d32d5de7858d8ed9f36b885
15 files changed:
aten/src/ATen/ScalarOps.h
aten/src/ATen/core/Type.h
aten/src/ATen/function_wrapper.py
aten/src/ATen/native/BinaryOps.cpp
aten/src/ATen/native/ReduceOps.cpp
aten/src/ATen/native/ReduceOpsUtils.h
aten/src/ATen/native/TensorFactories.cpp
aten/src/ATen/native/cuda/TensorFactories.cu
aten/src/ATen/native/native_functions.yaml
aten/src/ATen/native/sparse/SparseTensorMath.cpp
aten/src/ATen/templates/Type.h
aten/src/ATen/templates/TypeDefault.cpp
aten/src/ATen/templates/TypeDefault.h
aten/src/ATen/test/basic.cpp
torch/csrc/autograd/python_variable_indexing.cpp