message: Add portable (no-op) version of StatefulNnApiDelegate
diff: @@ -19,17 +19,21 @@ namespace tflite {
  // Return a non-functional NN API Delegate struct.
  TfLiteDelegate* NnApiDelegate() {
  - static TfLiteDelegate delegate = [] {
  - TfLiteDelegate delegate = TfLiteDelegateCreate();
  - delegate.Prepare = [](TfLiteContext* context,
  - TfLiteDelegate* delegate) -> TfLiteStatus {
  - // Silently succeed without modifying the graph.
  - return kTfLiteOk;
  - };
  + static StatefulNnApiDelegate* delegate = new StatefulNnApiDelegate();
  return delegate;
  - }();
  +}
  +
  +StatefulNnApiDelegate::StatefulNnApiDelegate(Options /* options */)
  + : StatefulNnApiDelegate() {}
  - return &delegate;
  +StatefulNnApiDelegate::StatefulNnApiDelegate()
  + : TfLiteDelegate(TfLiteDelegateCreate()) {
  + Prepare = DoPrepare;
  +}
  +
  +TfLiteStatus StatefulNnApiDelegate::DoPrepare(TfLiteContext* /* context */,
  + TfLiteDelegate* /* delegate */) {
  + return kTfLiteOk;
  }
  } // namespace tflite
  