/** * Copyright 2020 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef MINDSPORE_SERVING_GRAPH_IMPL_STUB_H #define MINDSPORE_SERVING_GRAPH_IMPL_STUB_H #include #include #include #include #include #include #include "include/api/status.h" #include "include/api/graph.h" #include "cxx_api/graph/graph_impl.h" #include "cxx_api/model/model_impl.h" namespace mindspore { class GraphImplStubAdd : public GraphCell::GraphImpl { public: GraphImplStubAdd(); explicit GraphImplStubAdd(const std::vector &add_shape); ~GraphImplStubAdd() override; Status Run(const std::vector &inputs, std::vector *outputs) override; Status Load() override; std::vector GetInputs() override; std::vector GetOutputs() override; private: std::vector inputs_; std::vector outputs_; void Init(const std::vector &add_shape); }; } // namespace mindspore #endif // MINDSPORE_SERVING_GRAPH_IMPL_STUB_H