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 <string> 18 19 #include "tensorflow/lite/delegates/coreml/builders/op_factory.h" 20 21 namespace tflite { 22 namespace delegates { 23 namespace coreml { 24 Build()25CoreML::Specification::NeuralNetworkLayer* DummyOpBuilder::Build() { 26 return nullptr; 27 } 28 DebugName()29const std::string& DummyOpBuilder::DebugName() { 30 SetDebugName("DummyOpBuilder", node_id_); 31 return debug_name_; 32 } 33 PopulateSubgraph(TfLiteContext * context)34TfLiteStatus DummyOpBuilder::PopulateSubgraph(TfLiteContext* context) { 35 return kTfLiteOk; 36 } 37 CreateDummyOpBuilder(GraphBuilder * graph_builder)38OpBuilder* CreateDummyOpBuilder(GraphBuilder* graph_builder) { 39 return new DummyOpBuilder(graph_builder); 40 } 41 RegisterInputs(const TfLiteIntArray * inputs,TfLiteContext * context)42TfLiteStatus DummyOpBuilder::RegisterInputs(const TfLiteIntArray* inputs, 43 TfLiteContext* context) { 44 return kTfLiteOk; 45 } 46 RegisterOutputs(const TfLiteIntArray * outputs,TfLiteContext * context)47TfLiteStatus DummyOpBuilder::RegisterOutputs(const TfLiteIntArray* outputs, 48 TfLiteContext* context) { 49 return kTfLiteOk; 50 } 51 52 } // namespace coreml 53 } // namespace delegates 54 } // namespace tflite 55