add NoopProfiler(int) constructor

This commit is contained in:
Koan-Sin Tan 2019-06-26 08:15:33 +08:00
parent d300f261d6
commit c95e753cda

View File

@ -27,6 +27,7 @@ namespace profiling {
class NoopProfiler : public tflite::Profiler {
public:
NoopProfiler() {}
NoopProfiler(int max_profiling_buffer_entries) {}
uint32_t BeginEvent(const char*, EventType, uint32_t) override { return 0; }
void EndEvent(uint32_t) override {}