blob: 5e219cca4e6ddf0e0f42afcc1e9b6217055d0068 [file] [log] [blame]
Matthew Haddone86fd342021-09-07 16:12:21 +01001# Copyright (c) 2021, ARM Limited.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15class ErrorIf(object):
16 MaxDimExceeded = "MaxDimExceeded"
17 StrideSmallerEqualZero = "StrideSmallerEqualZero"
18 StrideLargerEqualMax = "StrideLargerEqualMax"
19 StrideLargerDimension = "StrideLargerDimension"
20 OffsetSmallerEqualMin = "OffsetSmallerEqualMin"
21 OffsetLargerEqualMax = "OffsetLargerEqualMax"
22 ShiftNotZero = "ShiftNotZero"
23 ShiftSmallerOne = "ShiftSmallerOne"
24 ShiftLargerEleven = "ShiftLargerEleven"
Matthew Haddon848efb42021-09-09 12:30:53 +010025 WrongInputType = "WrongInputType"
26 WrongOutputType = "WrongOutputType"
27 WrongInputList = "WrongInputList"
28 WrongOutputList = "WrongOutputList"
29 WrongRank = "WrongRank"
Matthew Haddon693ba9e2021-09-22 11:24:37 +010030 BatchMismatch = "BatchMismatch"
31 ChannelMismatch = "ChannelMismatch"
Matthew Haddoneacff9a2021-09-24 14:42:13 +010032 RankMismatch = "RankMismatch"
Matthew Haddone4ecdb22021-09-28 11:38:21 +010033 InputZeroPointNotZero = "InputZeroPointNotZero"
34 OutputZeroPointNotZero = "OutputZeroPointNotZero"
Matthew Haddond6ce7252021-09-29 15:35:44 +010035 AxisSmallerZero = "AxisSmallerZero"
36 AxisLargerRank = "AxisLargerRank"
37 ShapeOfAxisNotOne = "ShapeOfAxisNotOne"
Matthew Haddonb6b59e32021-10-07 17:19:20 +010038 KernelSmallerOne = "KernelSmallerOne"
39 StrideSmallerOne = "StrideSmallerOne"
40 PadSmallerZero = "PadSmallerZero"
41 PadLargerEqualKernel = "PadLargerEqualKernel"
42 PoolingOutputShapeMismatch = "PoolingOutputShapeMismatch"
Matthew Haddonc2025212021-10-08 21:21:05 +010043 ScaleNotTrue = "ScaleNotTrue"
44 ScaleTrue = "ScaleTrue"
Matthew Haddond6ce7252021-09-29 15:35:44 +010045
Matthew Haddone86fd342021-09-07 16:12:21 +010046