1 // Copyright (c) 2018 Intel Corporation
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
15 ///////////////////////////////////////////////////////////////////////////////////////////////////
18 #include <api/CPP/border.hpp>
20 #include "primitive_inst.h"
26 struct typed_program_node<border> : typed_program_node_base<border>
29 using parent = typed_program_node_base<border>;
34 typed_program_node(const std::shared_ptr<border> prim, program_impl& prog) : parent(prim, prog) { support_padding(true); }
35 program_node& input() const { return get_dependency(0); }
38 using border_node = typed_program_node<border>;
41 class typed_primitive_inst<border> : public typed_primitive_inst_base<border>
43 using parent = typed_primitive_inst_base<border>;
46 static layout calc_output_layout(border_node const& node);
47 static std::string to_string(border_node const& node);
48 typed_primitive_inst(network_impl& network, border_node const& node);
51 using border_inst = typed_primitive_inst<border>;