2 Copyright (c) 2018-2019 Intel Corporation
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
17 from mo.graph.graph import Graph
18 from mo.ops.op import Op
19 from mo.utils.error import Error
24 The elementwise operation that has more than 2 inputs. This operation is replaced in a front phase with a number of
25 simple elementwise operations with 2 inputs. Refer to EltwiseNFrontReplacer for a list of supported operations.
29 def __init__(self, graph: Graph, attrs: dict):
30 super().__init__(graph, {
32 'type': None, # type is None because this operation should not appear in IR
36 if 'operation' not in self.attrs:
37 raise Error('"operation" attribute is not set for operation "{}".'.format(__class__.op))