reid from https://github.com/michuanhaohao/reid-strong-baseline
554325746@qq.com
2020-03-24 495ffcdad0027be02d5fc82825e08f36b6a53b90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
 
#include <torch/csrc/python_headers.h>
 
#include <torch/csrc/autograd/function.h>
#include <torch/csrc/autograd/engine.h>
 
bool THPEngine_initModule(PyObject *module);
 
namespace torch { namespace autograd { namespace python {
 
struct PythonEngine : public Engine {
  void thread_init(int device) override;
  void thread_on_exception(NodeTask& task, std::exception& e) override;
  variable_list execute(
      const edge_list& roots,
      const variable_list& inputs,
      bool keep_graph,
      bool create_graph,
      const edge_list& outputs = {}) override;
  std::unique_ptr<AnomalyMetadata> make_anomaly_metadata() override;
};
 
}}} // namespace torch::autograd::python