mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 13:44:15 +08: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;
|
|
}
|