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 |
|
---|---|
TfLiteDelegateCreator
|
usingstd::function< std::unique_ptr< TfLiteDelegate, void(*)(TfLiteDelegate *)>(int)>
|
TfLiteDelegateCreators
|
usingstd::vector< TfLiteDelegateCreator >
|
TfLiteDelegatePtrVector
|
usingstd::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.
|
GetDelegateCreators() const
|
virtual TfLiteDelegateCreators
|
GetDelegates(int num_threads) const
|
virtual TfLiteDelegatePtrVector
|
Public types
TfLiteDelegateCreator
std::function< std::unique_ptr< TfLiteDelegate, void(*)(TfLiteDelegate *)>(int)> TfLiteDelegateCreator
TfLiteDelegateCreators
std::vector< TfLiteDelegateCreator > TfLiteDelegateCreators
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.
GetDelegateCreators
virtual TfLiteDelegateCreators GetDelegateCreators() const
GetDelegates
virtual TfLiteDelegatePtrVector GetDelegates( int num_threads ) const
~OpResolver
virtual ~OpResolver()