mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Let's have some fun. Pull Request resolved: https://github.com/pytorch/pytorch/pull/78828 Approved by: https://github.com/ezyang
22 lines
453 B
C++
22 lines
453 B
C++
#pragma once
|
|
|
|
#include <ATen/core/Tensor.h>
|
|
#include <torch/csrc/python_headers.h>
|
|
|
|
namespace torch {
|
|
namespace 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 utils
|
|
} // namespace torch
|