tflite::OpResolver

This is an abstract class.

#include <op_resolver.h>

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

Summary

This is the mechanism that ops being referenced in the flatbuffer model are mapped to executable function pointers (TfLiteRegistrations).

Constructors and Destructors

~OpResolver()

Public types

TfLiteDelegatePtrVector using
std::vector< std::unique_ptr< TfLiteDelegate, void(*)(TfLiteDelegate *)>>

Public functions

FindOp(tflite::BuiltinOperator op, int version) const =0
virtual const TfLiteRegistration *
Finds the op registration for a builtin operator by enum code.
FindOp(const char *op, int version) const =0
virtual const TfLiteRegistration *
Finds the op registration of a custom operator by op name.
GetDelegates(int num_threads) const
virtual TfLiteDelegatePtrVector

Public types

TfLiteDelegatePtrVector

std::vector< std::unique_ptr< TfLiteDelegate, void(*)(TfLiteDelegate *)>> TfLiteDelegatePtrVector

Public functions

FindOp

virtual const TfLiteRegistration * FindOp(
  tflite::BuiltinOperator op,
  int version
) const =0

Finds the op registration for a builtin operator by enum code.

FindOp

virtual const TfLiteRegistration * FindOp(
  const char *op,
  int version
) const =0

Finds the op registration of a custom operator by op name.

GetDelegates

virtual TfLiteDelegatePtrVector GetDelegates(
  int num_threads
) const 

~OpResolver

virtual  ~OpResolver()