tf::cudaEventCreator class

class to create functors that construct CUDA events

Public functions

auto operator()() const -> cudaEvent_t
creates a new cudaEvent_t object using cudaEventCreate
auto operator()(unsigned int flag) const -> cudaEvent_t
creates a new cudaEvent_t object using cudaEventCreate with the given flag
auto operator()(cudaEvent_t event) const -> cudaEvent_t
returns the given cudaEvent_t object