Skip to content

Commit

Permalink
Fix NeoOnnx 7d input (#674)
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Zimka <boris.zimka@abbyy.com>

Co-authored-by: Boris Zimka <boris.zimka@abbyy.com>
Co-authored-by: Valeriy Fedyunin <valery.fedyunin@abbyy.com>
  • Loading branch information
3 people authored Jul 5, 2022
1 parent 905cf72 commit 3e1d078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NeoOnnx/src/GraphInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ CPtr<const CUserTensor> CGraphInput::AddSourceLayer( CDnn& dnn ) const
outputShape.Last() = 1;
}
}
CheckNeoOnnxSupport( outputShape.Size() < BD_Count, "Tensor has too many dimensions" );
CheckNeoOnnxSupport( outputShape.Size() <= BD_Count, "Tensor has too many dimensions" );

CheckNeoOnnxSupport( valueInfo.type().has_tensor_type(), "Only tensors supported for graph input values" );
CBlobDesc outputBlobDesc(
Expand Down

0 comments on commit 3e1d078

Please sign in to comment.