Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

neilisaac / torch   python

Repository URL to install this package:

Version: 1.8.0 

/ include / torch / csrc / cuda / Event.h

#ifndef THCP_EVENT_INC
#define THCP_EVENT_INC

#include <ATen/cuda/CUDAEvent.h>
#include <torch/csrc/python_headers.h>
#include <THC/THC.h>

struct THCPEvent {
  PyObject_HEAD
  at::cuda::CUDAEvent cuda_event;
};
extern PyObject *THCPEventClass;

void THCPEvent_init(PyObject *module);

inline bool THCPEvent_Check(PyObject* obj) {
  return THCPEventClass && PyObject_IsInstance(obj, THCPEventClass);
}

#endif // THCP_EVENT_INC