package tflite.proto

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

message BenchmarkError

configuration.proto:594

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

Used in: BenchmarkEvent

message BenchmarkEvent

configuration.proto:609

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

Used in: BestAccelerationDecision, MiniBenchmarkEvent

enum BenchmarkEventType

configuration.proto:519

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:640

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

Used in: MiniBenchmarkEvent

message BenchmarkMetric

configuration.proto:543

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:553

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:583

When during benchmark execution an error occurred.

Used in: BenchmarkError

message BenchmarkStoragePaths

configuration.proto:682

Where to store mini-benchmark state.

Used in: MinibenchmarkSettings

message BestAccelerationDecision

configuration.proto:627

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

Used in: MiniBenchmarkEvent

message CPUSettings

configuration.proto:441

Used in: TFLiteSettings

message CompatibilityFailure

compatibility_result.proto:112

Indicates the type and a human readable text for an error in an operation.

Used in: OpCompatibilityResult

enum CompatibilityFailureType

compatibility_result.proto:19

Used in: CompatibilityFailure

message CompatibilityResult

compatibility_result.proto:135

message ComputeSettings

configuration.proto:88

One possible acceleration configuration.

message CoralSettings

configuration.proto:415

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:416

Used in: CoralSettings

message CoreMLSettings

configuration.proto:283

CoreML Delegate settings. See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/delegates/coreml/coreml_delegate.h

Used in: TFLiteSettings

enum CoreMLSettings.EnabledDevices

configuration.proto:285

Note the enum order change from the above header for better proto practice.

Used in: CoreMLSettings

enum Delegate

configuration.proto:52

TFLite accelerator to use.

Used in: ErrorCode, TFLiteSettings

message EdgeTpuDeviceSpec

configuration.proto:312

EdgeTPU device spec.

Used in: EdgeTpuSettings

enum EdgeTpuDeviceSpec.PlatformType

configuration.proto:314

EdgeTPU platform types.

Used in: EdgeTpuDeviceSpec

message EdgeTpuInactivePowerConfig

configuration.proto:364

Used in: EdgeTpuSettings

enum EdgeTpuPowerState

configuration.proto:335

Generic definitions of EdgeTPU power states.

Used in: EdgeTpuInactivePowerConfig, EdgeTpuSettings

message EdgeTpuSettings

configuration.proto:374

EdgeTPU Delegate settings.

Used in: TFLiteSettings

enum EdgeTpuSettings.FloatTruncationType

configuration.proto:376

Float truncation types for EdgeTPU.

Used in: EdgeTpuSettings

enum EdgeTpuSettings.QosClass

configuration.proto:383

Used in: EdgeTpuSettings

message ErrorCode

configuration.proto:572

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:484

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:165

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:177

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

Used in: GPUSettings

enum GPUInferenceUsage

configuration.proto:186

GPU inference preference for initialization time vs. inference time. Corresponds to TfLiteGpuInferenceUsage.

Used in: GPUSettings

message GPUSettings

configuration.proto:200

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

Used in: TFLiteSettings

message HexagonSettings

configuration.proto:250

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:647

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

Not using oneof because of the way the generated cpp code. See comment above on TfLite settings for details.

message MinibenchmarkSettings

configuration.proto:707

How to run a minibenchmark. Next ID: 5

Used in: ComputeSettings

message ModelFile

configuration.proto:670

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:67

Used in: NNAPISettings

enum NNAPIExecutionPriority

configuration.proto:80

Used in: NNAPISettings

message NNAPISettings

configuration.proto:102

NNAPI delegate settings.

Used in: TFLiteSettings

message OpCompatibilityResult

compatibility_result.proto:124

Result for one operation of the given model and stores if the operation is supported. If it is supported, validation_failures will not have a value. If it is not supported, validation_failures will contain all the errors for that operation. Also saves the subgraph index inside the model and the operator index inside the subgraph.

Used in: CompatibilityResult

message TFLiteSettings

configuration.proto:447

How to configure TFLite.

Used in: BenchmarkEvent, ComputeSettings, MinibenchmarkSettings

message ValidationSettings

configuration.proto:699

Validation related settings. Next ID: 2

Used in: MinibenchmarkSettings

enum XNNPackFlags

configuration.proto:261

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

Used in: XNNPackSettings

message XNNPackSettings

configuration.proto:274

Used in: TFLiteSettings