Publishing 2019 R1 content
[platform/upstream/dldt.git] / model-optimizer / mo / ops / squeeze.py
index ef215c9..ad56f99 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.
@@ -28,8 +28,7 @@ class Squeeze(Op):
             'kind': 'op',
             'type': 'Reshape',
             'op': __class__.op,
-            'infer': tf_squeeze_infer
+            'infer': tf_squeeze_infer,
+            'in_ports_count': 2,
+            'out_ports_count': 1,
         }, attrs)
-
-    def supported_attrs(self):
-        return [('dim', lambda node: ', '.join(map(str, node['dim'])))]