TensorFlow 2.0 Beta is available Learn more

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 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.

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.

~OpResolver

virtual  ~OpResolver()