pytorch/torch/csrc/PtrWrapper.h
Mikhail Zolotukhin 722eb48ff2 Cleanup includes in torch/csrc/* (#19924)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19924
ghimport-source-id: f7248b16c8e263a7d0ba7975b1fc0b00cb2cf2c0

Differential Revision: D15125018

Pulled By: ZolotukhinM

fbshipit-source-id: 322c7ca53e38ef8b43b5ac5bd747b28bc10379f1
2019-05-06 14:03:18 -07:00

17 lines
347 B
C

#ifndef THP_PTR_WRAPPER_H
#define THP_PTR_WRAPPER_H
#include <torch/csrc/python_headers.h>
/**
* Python wrapper around arbitrary opaque C++ class
*/
bool THPWrapper_init(PyObject *module);
PyObject * THPWrapper_New(void *data, void (*destructor)(void*));
void * THPWrapper_get(PyObject * obj);
bool THPWrapper_check(PyObject * obj);
#endif