Caffe2 - C++ API
A deep learning, cross platform ML framework
Related Pages
Modules
Data Structures
Files
C++ API
Python API
GitHub
File List
Globals
torch
csrc
utils
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,
13
c10::optional<at::Device>
device,
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
at::Tensor
Definition:
Tensor.h:48
c10::Type
Definition:
jit_type.h:65
c10::optional
Definition:
Optional.h:118
torch
Definition:
jit_type.h:17
Generated on Thu Mar 21 2019 13:06:24 for Caffe2 - C++ API by
1.8.11