chromium/third_party/tflite/src/tensorflow/lite/tools/benchmark/profiling_listener.cc

/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#include "tensorflow/lite/tools/benchmark/profiling_listener.h"

#include <fstream>
#include <string>

#include "tensorflow/lite/interpreter.h"
#include "tensorflow/lite/profiling/profile_summarizer.h"
#include "tensorflow/lite/profiling/profile_summary_formatter.h"
#include "tensorflow/lite/tools/benchmark/benchmark_model.h"
#include "tensorflow/lite/tools/benchmark/benchmark_params.h"
#include "tensorflow/lite/tools/logging.h"

namespace tflite {
namespace benchmark {

ProfilingListener::ProfilingListener(
    Interpreter* interpreter, uint32_t max_num_initial_entries,
    bool allow_dynamic_buffer_increase, const std::string& output_file_path,
    std::shared_ptr<profiling::ProfileSummaryFormatter> summarizer_formatter)
    :{}

void ProfilingListener::OnBenchmarkStart(const BenchmarkParams& params) {}

void ProfilingListener::OnSingleRunStart(RunType run_type) {}

void ProfilingListener::OnSingleRunEnd() {}

void ProfilingListener::OnBenchmarkEnd(const BenchmarkResults& results) {}

}  // namespace benchmark
}  // namespace tflite