9 #include <fmt/format.h> 22 switch ( currentState )
28 "Deactivate Timeline Reporting Command Handler invoked while in a wrong state: {}",
31 if (!(packet.GetPacketFamily() == 0u && packet.GetPacketId() == 7u))
33 throw armnn::Exception(std::string(
"Expected Packet family = 0, id = 7 but received family =")
34 + std::to_string(packet.GetPacketFamily())
35 +
" id = " + std::to_string(packet.GetPacketId()));
38 m_TimelineReporting.store(
false);
46 static_cast<int>(currentState)));
ProfilingState GetCurrentState() const
void operator()(const arm::pipe::Packet &packet) override
virtual void NotifyBackendsForTimelineReporting()=0
Copyright (c) 2020 ARM Limited.
Base class for all ArmNN exceptions so that users can filter to just those.
constexpr char const * GetProfilingStateName(ProfilingState state)