1 #ifndef THCP_STREAM_INC 2 #define THCP_STREAM_INC 4 #include <c10/cuda/CUDAStream.h> 5 #include <torch/csrc/python_headers.h> 13 extern PyObject *THCPStreamClass;
15 void THCPStream_init(PyObject *module);
17 inline bool THCPStream_Check(PyObject* obj) {
18 return THCPStreamClass && PyObject_IsInstance(obj, THCPStreamClass);
21 #endif // THCP_STREAM_INC