mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-31 23:27:43 +00:00
Fix shape inference bug in GatherND contrib op (#1132)
This commit is contained in:
parent
4757933afe
commit
facdf77f84
1 changed files with 1 additions and 1 deletions
|
|
@ -929,7 +929,7 @@ with the exception that numpy default keepdims to False instead of True.)DOC")
|
|||
.TypeAndShapeInferenceFunction([](ONNX_NAMESPACE::InferenceContext& ctx) {
|
||||
propagateElemTypeFromInputToOutput(ctx, 0, 0);
|
||||
if (!hasNInputShapes(ctx, 2)) {
|
||||
fail_shape_inference("GatherND requires two tensor inputs.");
|
||||
return;
|
||||
}
|
||||
auto& data_shape = ctx.getInputType(0)->tensor_type().shape();
|
||||
auto& indices_shape = ctx.getInputType(1)->tensor_type().shape();
|
||||
|
|
|
|||
Loading…
Reference in a new issue