blob: b0f5efa891defa2bba27401a9981335da2b80b32 [file] [log] [blame]
#include "python_functions.h"
// ${generated_comment}
#include <Python.h>
#include <ATen/ATen.h>
#include "Functions.h"
#include "torch/csrc/autograd/python_cpp_function.h"
namespace torch { namespace autograd { namespace generated {
template<typename C>
static void addClass(PyTypeObject& type, const char* name,
PyGetSetDef* function_properties=NULL, PyMethodDef* function_methods=NULL)
{
_initFunctionPyTypeObject(type, name, function_properties, function_methods);
Py_INCREF(&type);
registerCppFunction(typeid(C), &type);
}
void initialize_autogenerated_functions() {
${py_function_initializers}
}
}}} // namespace torch::autograd::generated