Skip to content

Commit df4adc7

Browse files
committed
Change code based on code review
1 parent d900755 commit df4adc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/core/session/custom_ops.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct OrtShapeInferContext {
8080
auto tensor_shape = ::onnxruntime::utils::GetTensorShapeFromTensorShapeProto(shape_proto);
8181
auto symbolic_dims = GetSymbolicDims(shape_proto);
8282
input_type_shapes_.emplace_back(
83-
OrtTensorTypeAndShapeInfo::GetTensorShapeAndTypeHelper(elem_type, tensor_shape, &symbolic_dims, type_proto.has_shape()).release());
83+
OrtTensorTypeAndShapeInfo::GetTensorShapeAndTypeHelper(elem_type, tensor_shape, &symbolic_dims, onnxruntime::utils::HasShape(type_proto)).release());
8484
}
8585
}
8686

0 commit comments

Comments
 (0)