Skip to content

Commit ff45588

Browse files
Changming Sunhouseroad
authored andcommitted
Remove unreachable code in shape_inference.h (#1585)
1 parent f7dcad0 commit ff45588

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

onnx/defs/shape_inference.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ inline void propagateShapeFromInputToOutput(
230230
TypeProto::kTensorType != output_type->value_case()) {
231231
throw std::runtime_error(ONNX_NAMESPACE::to_string(
232232
ctx.getInputType(inputIndex)->tensor_type().shape().dim_size()));
233-
return;
234233
}
235234

236235
*ctx.getOutputType(outputIndex)->mutable_tensor_type()->mutable_shape() =

0 commit comments

Comments
 (0)