File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 36
36
"GreaterEqual" ,
37
37
"Less" ,
38
38
"LogicalAnd" ,
39
+ "LogicalOr" ,
39
40
"Mul" ,
40
41
"RealDiv" ,
41
42
"Sub"
42
43
]
43
44
45
+
44
46
def infer_shape_for_graph (g ):
45
47
no_shape_updated = True
46
48
while no_shape_updated :
@@ -135,7 +137,7 @@ def infer_shape_for_node(g, node):
135
137
axis += len (s1 )
136
138
new_shape = s1 [:axis ] + [val ]
137
139
if axis < len (s1 ) - 1 :
138
- new_shape += s1 [axis + 1 :]
140
+ new_shape += s1 [axis + 1 :]
139
141
140
142
g .set_shape (node .output [0 ], new_shape )
141
143
log .debug ("set ConcatV2 node [%s] with new shape %s" , node .output [0 ], new_shape )
@@ -148,7 +150,7 @@ def infer_shape_for_node(g, node):
148
150
shape_indices = g .get_shape (node .input [1 ])
149
151
axis = node .input [2 ].get_tensor_value ()
150
152
151
- shape = shape_params [:axis ] + shape_indices + shape_indices [axis + 1 :]
153
+ shape = shape_params [:axis ] + shape_indices + shape_indices [axis + 1 :]
152
154
g .set_shape (node .output [0 ], shape )
153
155
return True
154
156
You can’t perform that action at this time.
0 commit comments