diff options
Diffstat (limited to 'ConversionUtils.hpp')
-rw-r--r-- | ConversionUtils.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ConversionUtils.hpp b/ConversionUtils.hpp index 5a111317..0fbd4e4d 100644 --- a/ConversionUtils.hpp +++ b/ConversionUtils.hpp @@ -3629,6 +3629,11 @@ bool ConvertStridedSlice(const HalOperation& operation, const HalModel& model, C { return Fail("%s: StridedSlice: Output will not be large enough to hold the slice", __func__); } + + if(stride < 0) + { + return Fail("%s: StridedSlice: Stride can not be negative while ShrinkAxisMask is set.", __func__); + } } } |