Caffe2 - C++ API
A deep learning, cross platform ML framework
tensor_new.h
1 #pragma once
2 
3 #include <torch/csrc/python_headers.h>
4 
5 #include <ATen/ATen.h>
6 
7 namespace torch { namespace utils {
8 
9 at::Tensor legacy_tensor_ctor(const at::Type& type, PyObject* args, PyObject* kwargs);
10 at::Tensor legacy_tensor_new(const at::Type& type, PyObject* args, PyObject* kwargs);
11 at::Tensor indexing_tensor_from_data(
12  const at::Type& type,
14  PyObject* data);
15 at::Tensor sparse_coo_tensor_ctor(const at::Type& type, PyObject* args, PyObject* kwargs);
16 at::Tensor tensor_ctor(const at::Type& type, PyObject* args, PyObject* kwargs);
17 at::Tensor as_tensor(const at::Type& type, PyObject* args, PyObject* kwargs);
18 at::Tensor new_tensor(const at::Type& type, PyObject* args, PyObject* kwargs);
19 at::Tensor new_empty(const at::Type& type, PyObject* args, PyObject* kwargs);
20 at::Tensor new_full(const at::Type& type, PyObject* args, PyObject* kwargs);
21 at::Tensor new_ones(const at::Type& type, PyObject* args, PyObject* kwargs);
22 at::Tensor new_zeros(const at::Type& type, PyObject* args, PyObject* kwargs);
23 
24 }} // namespace torch::utils
Definition: jit_type.h:17