Rename _local_scalar to item() (#13676)
authorPeter Goldsborough <psag@fb.com>
Tue, 4 Dec 2018 21:17:17 +0000 (13:17 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 4 Dec 2018 21:19:26 +0000 (13:19 -0800)
commit875be849e98d0e67fc860e9861e84de61bff368a
tree504dc9b643841fe3bc8a9591d4a796fb1c059b54
parente829a52977e01eb3de8a9194fd5e0b34f43c09f7
Rename _local_scalar to item() (#13676)

Summary:
Make `at::_local_scalar` more "official" by renaming it to `item()`.

gchanan
Pull Request resolved: https://github.com/pytorch/pytorch/pull/13676

Differential Revision: D13003020

Pulled By: goldsborough

fbshipit-source-id: 0ac25f5237fb81a1576304a0a02f840ff44168a4
16 files changed:
aten/src/ATen/TensorOperators.h
aten/src/ATen/core/Tensor.h
aten/src/ATen/core/TensorMethods.h
aten/src/ATen/core/Type.h
aten/src/ATen/function_wrapper.py
aten/src/ATen/native/Scalar.cpp
aten/src/ATen/native/TensorCompare.cpp
aten/src/ATen/native/native_functions.yaml
aten/src/ATen/templates/TensorMethods.h
aten/src/ATen/test/scalar_test.cpp
test/cpp/api/tensor.cpp
tools/autograd/gen_python_functions.py
torch/csrc/api/src/optim/lbfgs.cpp
torch/csrc/jit/attributes.h
torch/csrc/jit/passes/canonicalize_ops.cpp
torch/csrc/utils/python_arg_parser.h