tf::cudaEventCreator struct

functor to create a cudaEvent_t object

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