Publishing 2019 R1 content
[platform/upstream/dldt.git] / model-optimizer / mo / ops / split.py
index 5ce6b0f..62c3951 100644 (file)
@@ -1,5 +1,5 @@
 """
- 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.
@@ -15,9 +15,8 @@
 """
 import copy
 
-import networkx as nx
 import numpy as np
-from mo.graph.graph import Node
+from mo.graph.graph import Node, Graph
 from mo.ops.op import Op, PermuteAttrs
 
 
@@ -25,12 +24,13 @@ class Split(Op):
     op = 'Split'
     enabled = True
 
-    def __init__(self, graph: nx.MultiDiGraph, attrs: dict):
+    def __init__(self, graph: Graph, attrs: dict):
         super().__init__(graph, {
             'type': 'Split',
             'op': 'Split',
             'axis': 1,
             'input_port': 0,
+            'in_ports_count': 1,
             'infer': Split.infer
         }, attrs)