1 /* Copyright 2020 The TensorFlow Authors. All Rights Reserved. 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14 ==============================================================================*/ 15 #include "tensorflow/lite/delegates/coreml/builders/dummy_op_builder.h" 16 17 #include "tensorflow/lite/delegates/coreml/builders/op_factory.h" 18 19 namespace tflite { 20 namespace delegates { 21 namespace coreml { 22 Build()23CoreML::Specification::NeuralNetworkLayer* DummyOpBuilder::Build() { 24 return nullptr; 25 } 26 DebugName()27const std::string& DummyOpBuilder::DebugName() { 28 SetDebugName("DummyOpBuilder", node_id_); 29 return debug_name_; 30 } 31 PopulateSubgraph(TfLiteContext * context)32TfLiteStatus DummyOpBuilder::PopulateSubgraph(TfLiteContext* context) { 33 return kTfLiteOk; 34 } 35 CreateDummyOpBuilder(GraphBuilder * graph_builder)36OpBuilder* CreateDummyOpBuilder(GraphBuilder* graph_builder) { 37 return new DummyOpBuilder(graph_builder); 38 } 39 RegisterInputs(const TfLiteIntArray * inputs,TfLiteContext * context)40TfLiteStatus DummyOpBuilder::RegisterInputs(const TfLiteIntArray* inputs, 41 TfLiteContext* context) { 42 return kTfLiteOk; 43 } 44 RegisterOutputs(const TfLiteIntArray * outputs,TfLiteContext * context)45TfLiteStatus DummyOpBuilder::RegisterOutputs(const TfLiteIntArray* outputs, 46 TfLiteContext* context) { 47 return kTfLiteOk; 48 } 49 50 } // namespace coreml 51 } // namespace delegates 52 } // namespace tflite 53