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

/* Copyright 2018 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/benchmark_model.h"

#include <cstdint>

#ifdef __linux__
#include <unistd.h>
#endif  // __linux__

#include <iostream>
#include <memory>
#include <sstream>
#include <string>

#include "tensorflow/lite/profiling/memory_info.h"
#include "tensorflow/lite/profiling/time.h"
#include "tensorflow/lite/tools/benchmark/benchmark_utils.h"
#include "tensorflow/lite/tools/logging.h"

namespace tflite {
namespace benchmark {
Stat;

constexpr int kMemoryCheckIntervalMs =;

#ifdef __linux__
void GetRssStats(size_t* vsize, size_t* rss, size_t* shared, size_t* code) {}
#endif  // __linux__

BenchmarkParams BenchmarkModel::DefaultParams() {}

BenchmarkModel::BenchmarkModel() :{}

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

std::vector<Flag> BenchmarkModel::GetFlags() {}

void BenchmarkModel::LogParams() {}

TfLiteStatus BenchmarkModel::PrepareInputData() {}

TfLiteStatus BenchmarkModel::ResetInputsAndOutputs() {}

Stat<int64_t> BenchmarkModel::Run(int min_num_times, float min_secs,
                                  float max_secs, RunType run_type,
                                  TfLiteStatus* invoke_status) {}

TfLiteStatus BenchmarkModel::ValidateParams() {}

TfLiteStatus BenchmarkModel::Run(int argc, char** argv) {}

TfLiteStatus BenchmarkModel::Run() {}

TfLiteStatus BenchmarkModel::ParseFlags(int* argc, char** argv) {}

std::unique_ptr<profiling::memory::MemoryUsageMonitor>
BenchmarkModel::MayCreateMemoryUsageMonitor() const {}

}  // namespace benchmark
}  // namespace tflite