We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d900755 commit df4adc7Copy full SHA for df4adc7
onnxruntime/core/session/custom_ops.cc
@@ -80,7 +80,7 @@ struct OrtShapeInferContext {
80
auto tensor_shape = ::onnxruntime::utils::GetTensorShapeFromTensorShapeProto(shape_proto);
81
auto symbolic_dims = GetSymbolicDims(shape_proto);
82
input_type_shapes_.emplace_back(
83
- OrtTensorTypeAndShapeInfo::GetTensorShapeAndTypeHelper(elem_type, tensor_shape, &symbolic_dims, type_proto.has_shape()).release());
+ OrtTensorTypeAndShapeInfo::GetTensorShapeAndTypeHelper(elem_type, tensor_shape, &symbolic_dims, onnxruntime::utils::HasShape(type_proto)).release());
84
}
85
86
0 commit comments