3 #include <torch/csrc/python_headers.h> 5 #include <ATen/Layout.h> 9 const int LAYOUT_NAME_LEN = 64;
14 char name[LAYOUT_NAME_LEN + 1];
17 extern PyTypeObject THPLayoutType;
19 inline bool THPLayout_Check(PyObject *obj) {
20 return Py_TYPE(obj) == &THPLayoutType;
23 PyObject * THPLayout_New(at::Layout layout,
const std::string& name);
25 void THPLayout_init(PyObject *module);