#include "tensorflow/lite/acceleration/configuration/flatbuffer_to_proto.h"
#include "tensorflow/lite/acceleration/configuration/configuration.pb.h"
#include "tensorflow/lite/acceleration/configuration/configuration_generated.h"
#include "tensorflow/lite/minimal_logging.h"
namespace tflite {
namespace {
proto::ExecutionPreference ConvertExecutionPreference(
ExecutionPreference preference) { … }
proto::Delegate ConvertDelegate(Delegate delegate) { … }
proto::NNAPIExecutionPreference ConvertNNAPIExecutionPreference(
NNAPIExecutionPreference preference) { … }
proto::NNAPIExecutionPriority ConvertNNAPIExecutionPriority(
NNAPIExecutionPriority priority) { … }
proto::GPUBackend ConvertGPUBackend(GPUBackend backend) { … }
proto::GPUInferenceUsage ConvertGPUInferenceUsage(
GPUInferenceUsage preference) { … }
proto::GPUInferencePriority ConvertGPUInferencePriority(
GPUInferencePriority priority) { … }
proto::EdgeTpuPowerState ConvertEdgeTpuPowerState(EdgeTpuPowerState state) { … }
proto::FallbackSettings ConvertFallbackSettings(
const FallbackSettings& settings) { … }
proto::NNAPISettings ConvertNNAPISettings(const NNAPISettings& settings) { … }
proto::GPUSettings ConvertGPUSettings(const GPUSettings& settings) { … }
proto::HexagonSettings ConvertHexagonSettings(const HexagonSettings& settings) { … }
proto::XNNPackSettings ConvertXNNPackSettings(const XNNPackSettings& settings) { … }
proto::CoreMLSettings ConvertCoreMLSettings(const CoreMLSettings& settings) { … }
proto::CPUSettings ConvertCPUSettings(const CPUSettings& settings) { … }
proto::EdgeTpuDeviceSpec ConvertEdgeTpuDeviceSpec(
const EdgeTpuDeviceSpec& device_spec) { … }
proto::EdgeTpuSettings ConvertEdgeTpuSettings(const EdgeTpuSettings& settings) { … }
proto::StableDelegateLoaderSettings ConvertStableDelegateLoaderSettings(
const StableDelegateLoaderSettings& settings) { … }
proto::CoralSettings ConvertCoralSettings(const CoralSettings& settings) { … }
proto::GoogleEdgeTpuSettings::Priority ConvertGoogleEdgeTpuPriority(
GoogleEdgeTpuSettings_::Priority priority) { … }
proto::GoogleEdgeTpuSettings::TriState ConvertGoogleEdgeTpuTriState(
GoogleEdgeTpuSettings_::TriState tri_state) { … }
proto::GoogleEdgeTpuSettings ConvertGoogleEdgetpuSettings(
const GoogleEdgeTpuSettings& settings) { … }
proto::CompilationCachingSettings ConvertCompilationCachingSettings(
const CompilationCachingSettings& settings) { … }
proto::MtkNeuronSettings ConvertMtkNeuronSettings(
const MtkNeuronSettings& settings) { … }
proto::TFLiteSettings ConvertTfliteSettings(const TFLiteSettings& settings) { … }
proto::ModelFile ConvertModelFile(const ModelFile& model_file) { … }
proto::BenchmarkStoragePaths ConvertBenchmarkStoragePaths(
const BenchmarkStoragePaths& storage_paths) { … }
proto::MinibenchmarkSettings ConvertMinibenchmarkSettings(
const MinibenchmarkSettings& settings) { … }
proto::BenchmarkEventType ConvertBenchmarkEventType(BenchmarkEventType type) { … }
proto::BenchmarkMetric ConvertBenchmarkMetric(const BenchmarkMetric& metric) { … }
proto::BenchmarkResult ConvertBenchmarkResult(const BenchmarkResult& result) { … }
proto::BenchmarkStage ConvertBenchmarkStage(BenchmarkStage stage) { … }
proto::ErrorCode ConvertBenchmarkErrorCode(const ErrorCode& code) { … }
proto::BenchmarkError ConvertBenchmarkError(const BenchmarkError& error) { … }
proto::BenchmarkEvent ConvertBenchmarkEvent(const BenchmarkEvent& event) { … }
proto::BestAccelerationDecision ConvertBestAccelerationDecision(
const BestAccelerationDecision& decision) { … }
proto::BenchmarkInitializationFailure ConvertBenchmarkInitializationFailure(
const BenchmarkInitializationFailure& init_failure) { … }
}
proto::ComputeSettings ConvertFromFlatbuffer(
const ComputeSettings& settings, bool skip_mini_benchmark_settings) { … }
proto::ComputeSettings ConvertFromFlatbuffer(
const ComputeSettingsT& settings, bool skip_mini_benchmark_settings) { … }
proto::MiniBenchmarkEvent ConvertFromFlatbuffer(
const MiniBenchmarkEvent& event) { … }
proto::MiniBenchmarkEvent ConvertFromFlatbuffer(
const MiniBenchmarkEventT& event) { … }
}