reid from https://github.com/michuanhaohao/reid-strong-baseline
zhangmeng
2020-01-17 1bb4d137919cae4f57f95a2572ee612dcabb3b3d
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once
 
#include <torch/csrc/python_headers.h>
#include <ATen/ATen.h>
 
namespace torch { namespace utils {
 
at::Tensor & apply_(at::Tensor & self, PyObject* fn);
at::Tensor & map_(at::Tensor & self, const at::Tensor & other_, PyObject* fn);
at::Tensor & map2_(at::Tensor & self, const at::Tensor & x_,
                   const at::Tensor & y_, PyObject* fn);
 
}} // namespace torch::utils