mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
12 lines
242 B
C++
12 lines
242 B
C++
#include <Python.h>
|
|
|
|
#include "THP.h"
|
|
|
|
PyObject *THPException_FatalError;
|
|
|
|
bool THPException_init(PyObject *module)
|
|
{
|
|
THPException_FatalError = PyErr_NewException("torch.FatalError", NULL, NULL);
|
|
return THPException_FatalError != NULL;
|
|
}
|