Attend the Women in ML Symposium on December 7 Register now
Stay organized with collections Save and categorize content based on your preferences.

tflite

\file Memory management for TF Lite.

Summary

\file Deserialization infrastructure for tflite.

\file Provides functionality to construct an interpreter for a model.

\file This provides a few C++ helpers that are useful for manipulating C structures in C++.

Provides functionality to go from a serialized tflite model in flatbuffer format to an in-memory representation of the model.

Functions

DefaultErrorReporter()
GetRegistrationFromOpCode(const OperatorCode *opcode, const OpResolver & op_resolver, ErrorReporter *error_reporter, const TfLiteRegistration **registration)
TfLiteStatus

Classes

tflite::Allocation

A memory allocation handle. This could be a mmap or shared memory.

tflite::ErrorReporter

A functor that reports error to supporting system.

tflite::FileCopyAllocation
tflite::FlatBufferModel

An RAII object that represents a read-only tflite model, copied from disk, or mmapped.

tflite::InterpreterBuilder

Build an interpreter capable of interpreting model.

tflite::MMAPAllocation

Note that not all platforms support MMAP-based allocation.

tflite::MemoryAllocation
tflite::MutableOpResolver

An OpResolver that is mutable, also used as the op in gen_op_registration.

tflite::OpResolver

Abstract interface that returns TfLiteRegistrations given op codes or custom op names.

tflite::TfLiteIntArrayView

Provides a range iterable wrapper for TfLiteIntArray* (C lists) that TfLite C api uses.

Structs

tflite::StderrReporter

Namespaces

tflite::op_resolver_hasher

Functions

DefaultErrorReporter

ErrorReporter * DefaultErrorReporter()

GetRegistrationFromOpCode

TfLiteStatus GetRegistrationFromOpCode(
  const OperatorCode *opcode,
  const OpResolver & op_resolver,
  ErrorReporter *error_reporter,
  const TfLiteRegistration **registration
)