Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions | Static Public Member Functions | Data Fields | Friends
caffe2::Event Class Reference

Public Member Functions

 Event (const DeviceOption &option)
 
void Record (DeviceType recorder_type, const void *context, const char *err_msg=nullptr)
 
void Wait (DeviceType waiter_type, void *context) const
 
void Finish () const
 
EventStatus Query () const
 
const std::string & ErrorMessage () const
 
void Reset ()
 
const DeviceOption & GetDeviceOption () const
 
bool IsScheduled () const
 
bool IsFinished () const
 
void SetFinished (const char *err_msg=nullptr)
 
bool SupportsCallback () const
 
void SetCallback (EventCallbackFunction callback)
 
bool CanSchedule (const Event &child_event, bool supports_async) const
 
int GetType () const
 
void SetFinishedWithException (const char *err_msg=nullptr)
 
bool HasException () const
 
int64_t ExceptionTimestamp () const
 
void RethrowException () const
 

Static Public Member Functions

static bool CanSchedule (int parent_type, EventStatus parent_status, int child_type, bool child_supports_async)
 

Data Fields

std::shared_ptr< void > event_
 

Friends

template<DeviceType t>
struct EventCreateFunctionRegisterer
 
template<DeviceType t>
struct EventRecordFunctionRegisterer
 
template<DeviceType w, DeviceType d>
struct EventWaitFunctionRegisterer
 
template<DeviceType t>
struct EventFinishFunctionRegisterer
 
template<DeviceType t>
struct EventQueryFunctionRegisterer
 
template<DeviceType t>
struct EventErrorMessageFunctionRegisterer
 
template<DeviceType t>
struct EventSetFinishedFunctionRegisterer
 
template<DeviceType t>
struct EventSetCallbackFunctionRegisterer
 
template<DeviceType t>
struct EventResetFunctionRegisterer
 

Detailed Description

Definition at line 58 of file event.h.


The documentation for this class was generated from the following files: