Files
pytorch/torch/csrc/Exceptions.cpp
2016-09-25 12:25:54 -07:00

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;
}