tensorflow/core/profiler/utils/group_events.cc
// Returns event type if it is a KernelLaunch or KernelExecute event.
Returns event type if it is a KernelLaunch or KernelExecute event.
Returns event type if it is a KernelLaunch or KernelExecute event .
absl::optional<int64_t> GetKernelEventType(bool is_host_plane,
                                           const EventNode& event) {
  if (event.GetEventVisitor().GetStat(StatType::kCorrelationId).has_value()) {
    return is_host_plane ? HostEventType::kKernelLaunch
                         : HostEventType::kKernelExecute;
  }
  return absl::nullopt;
}
absl :: optional < int64_t > GetKernelEventType ( bool is_host_plane , const EventNode & event ) { if ( event . GetEventVisitor ( ) . GetStat ( StatType :: kCorrelationId ) . has_value ( ) ) { return is_host_plane ? HostEventType :: kKernelLaunch : HostEventType :: kKernelExecute ; } return absl :: nullopt ; }
Returns event type if it is a KernelLaunch or KernelExecute event.
Returns event type if it is a KernelLaunch or KernelExecute event .