Files
pytorch/torch/csrc/utils/tensor_apply.h
2024-06-04 15:12:45 +00:00

20 lines
428 B
C++

#pragma once
#include <ATen/core/Tensor.h>
#include <torch/csrc/python_headers.h>
namespace torch::utils {
const at::Tensor& apply_(const at::Tensor& self, PyObject* fn);
const at::Tensor& map_(
const at::Tensor& self,
const at::Tensor& other_,
PyObject* fn);
const at::Tensor& map2_(
const at::Tensor& self,
const at::Tensor& x_,
const at::Tensor& y_,
PyObject* fn);
} // namespace torch::utils