Caffe2 - C++ API
A deep learning, cross platform ML framework
tensor_apply.h
1 #pragma once
2 
3 #include <torch/csrc/python_headers.h>
4 #include <ATen/ATen.h>
5 
6 namespace torch { namespace utils {
7 
8 at::Tensor & apply_(at::Tensor & self, PyObject* fn);
9 at::Tensor & map_(at::Tensor & self, const at::Tensor & other_, PyObject* fn);
10 at::Tensor & map2_(at::Tensor & self, const at::Tensor & x_,
11  const at::Tensor & y_, PyObject* fn);
12 
13 }} // namespace torch::utils
Definition: jit_type.h:17