"""
- Copyright (c) 2018 Intel Corporation
+ Copyright (c) 2018-2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
"""
import numpy as np
-import networkx as nx
-
from extensions.front.kaldi.replace_lstm_node_pattern import unique_id
from mo.front.common.partial_infer.utils import int64_array
from mo.front.common.replacement import FrontReplacementOp
-from mo.graph.graph import Node
+from mo.graph.graph import Node, Graph
from mo.ops.concat import Concat
from mo.ops.crop import Crop
from mo.ops.memory import Memory
op = "Splice"
enabled = True
- def replace_op(self, graph: nx.MultiDiGraph, node: Node):
+ def replace_op(self, graph: Graph, node: Node):
input_node = node.in_nodes()[0]
memory_pair_id = unique_id('id')
# Memory(in)
# Concat
# Input /
concat_node = Concat(graph, {'name': 'Splice_Concat',
+ 'in_ports_count': 2,
'axis': 1}).create_node([crop, input_node])
# Concat -> Memory(out)