mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
It contains formatting and other minor fixes. Pull Request resolved: https://github.com/pytorch/pytorch/pull/127833 Approved by: https://github.com/ezyang
20 lines
428 B
C++
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
|