package tflite.proto

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message BenchmarkError

configuration.proto:499

An error that occurred during benchmarking. Used with event type ERROR.

Used in: BenchmarkEvent

message BenchmarkEvent

configuration.proto:514

Top-level benchmarking event stored on-device. All events for a model are parsed to detect the status.

Used in: BestAccelerationDecision

enum BenchmarkEventType

configuration.proto:429

Which stage of benchmarking the event is for. There might be multiple events with the same type, if a benchmark is run multiple times.

Used in: BenchmarkEvent

message BenchmarkInitializationFailure

configuration.proto:545

Represent a failure during the initialization of the mini-benchmark.

Used in: MiniBenchmarkEvent

message BenchmarkMetric

configuration.proto:448

A correctness metric from a benchmark, for example KL-divergence between known-good CPU output and on-device output. These are primarily used for telemetry and monitored server-side.

Used in: BenchmarkResult

message BenchmarkResult

configuration.proto:458

Outcome of a successfully complete benchmark run. This information is intended to both be used on-device to select best compute configuration as well as sent to server for monitoring. Used with event type END.

Used in: BenchmarkEvent

enum BenchmarkStage

configuration.proto:488

When during benchmark execution an error occurred.

Used in: BenchmarkError

message BenchmarkStoragePaths

configuration.proto:579

Where to store mini-benchmark state.

Used in: MinibenchmarkSettings

message BestAccelerationDecision

configuration.proto:532

Represent the decision on the best acceleration from the mini-benchmark.

Used in: MiniBenchmarkEvent

message CPUSettings

configuration.proto:355

Used in: TFLiteSettings

message ComputeSettings

configuration.proto:86

One possible acceleration configuration.

message CoralSettings

configuration.proto:329

Coral Dev Board / USB accelerator delegate settings. See https://github.com/google-coral/edgetpu/blob/master/libedgetpu/edgetpu_c.h

Used in: TFLiteSettings

enum CoralSettings.Performance

configuration.proto:330

Used in: CoralSettings

enum Delegate

configuration.proto:52

TFLite accelerator to use.

Used in: ErrorCode, TFLiteSettings

message EdgeTpuDeviceSpec

configuration.proto:235

EdgeTPU device spec.

Used in: EdgeTpuSettings

enum EdgeTpuDeviceSpec.PlatformType

configuration.proto:237

EdgeTPU platform types.

Used in: EdgeTpuDeviceSpec

message EdgeTpuInactivePowerConfig

configuration.proto:287

Used in: EdgeTpuSettings

enum EdgeTpuPowerState

configuration.proto:258

Generic definitions of EdgeTPU power states.

Used in: EdgeTpuInactivePowerConfig, EdgeTpuSettings

message EdgeTpuSettings

configuration.proto:297

EdgeTPU Delegate settings.

Used in: TFLiteSettings

enum EdgeTpuSettings.FloatTruncationType

configuration.proto:299

Float truncation types for EdgeTPU.

Used in: EdgeTpuSettings

message ErrorCode

configuration.proto:477

A handled error.

Used in: BenchmarkError

enum ExecutionPreference

configuration.proto:38

ExecutionPreference is used to match accelerators against the preferences of the current application or usecase. Some of the values here can appear both in the compatibility list and as input, some only as input. These are separate from NNAPIExecutionPreference - the compatibility list design doesn't assume a one-to-one mapping between which usecases compatibility list entries have been developed for and what settings are used for NNAPI.

Used in: ComputeSettings

message FallbackSettings

configuration.proto:394

Whether to automatically fallback to TFLite CPU path on delegation errors. Typically fallback is enabled in production use but disabled in tests and benchmarks to ensure they test the intended path.

Used in: NNAPISettings, TFLiteSettings

enum GPUBackend

configuration.proto:158

Which GPU backend to select. Default behaviour on Android is to try OpenCL and if it's not available fall back to OpenGL.

Used in: GPUSettings

enum GPUInferencePriority

configuration.proto:170

GPU inference priorities define relative priorities given by the GPU delegate to different client needs. Corresponds to TfLiteGpuInferencePriority.

Used in: GPUSettings

message GPUSettings

configuration.proto:181

GPU Delegate settings. See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/delegates/gpu/delegate.h

Used in: TFLiteSettings

message HexagonSettings

configuration.proto:218

Hexagon Delegate settings. See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/delegates/hexagon/hexagon_delegate.h

Used in: TFLiteSettings

message MiniBenchmarkEvent

configuration.proto:552

Events generated by the mini-benchmark before and after triggering the different configuration-specific benchmarks

message MinibenchmarkSettings

configuration.proto:595

How to run a minibenchmark.

Used in: ComputeSettings

message ModelFile

configuration.proto:567

How to access the model for mini-benchmark. Since mini-benchmark runs in a separate process, it can not access an in-memory model. It can read the model either from a file or from a file descriptor. The file descriptor typically comes from the Android asset manager. Users should set either filename, or all of fd, offset and length.

Used in: MinibenchmarkSettings

enum NNAPIExecutionPreference

configuration.proto:65

Used in: NNAPISettings

enum NNAPIExecutionPriority

configuration.proto:78

Used in: NNAPISettings

message NNAPISettings

configuration.proto:100

NNAPI delegate settings.

Used in: TFLiteSettings

message TFLiteSettings

configuration.proto:361

How to configure TFLite.

Used in: BenchmarkEvent, ComputeSettings, MinibenchmarkSettings

message XNNPackSettings

configuration.proto:229

XNNPack Delegate settings. See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/delegates/xnnpack/xnnpack_delegate.h

Used in: TFLiteSettings