mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
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
17 lines
347 B
C
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
|