blob: 7c162be602ce1a6d9b809400ff0143ff0a4843ef [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"
Jeremy Johnson7e9ac9a2021-11-08 18:10:51 +000033 DimensionMismatch = "DimensionMismatch"
Matthew Haddone4ecdb22021-09-28 11:38:21 +010034 InputZeroPointNotZero = "InputZeroPointNotZero"
Matthew Haddonc4cf0372021-10-11 09:38:10 +010035 WeightZeroPointNotZero = "WeightZeroPointNotZero"
Matthew Haddone4ecdb22021-09-28 11:38:21 +010036 OutputZeroPointNotZero = "OutputZeroPointNotZero"
Matthew Haddond6ce7252021-09-29 15:35:44 +010037 AxisSmallerZero = "AxisSmallerZero"
38 AxisLargerRank = "AxisLargerRank"
Matthew Haddonc4cf0372021-10-11 09:38:10 +010039 ArgmaxOutputShapeMismatch = "ArgmaxOutputShapeMismatch"
40 ArgmaxOutputRankMismatch = "ArgmaxOutputRankMismatch"
Matthew Haddond6ce7252021-09-29 15:35:44 +010041 ShapeOfAxisNotOne = "ShapeOfAxisNotOne"
Matthew Haddonb6b59e32021-10-07 17:19:20 +010042 KernelSmallerOne = "KernelSmallerOne"
43 StrideSmallerOne = "StrideSmallerOne"
Les Bell0e027d42021-11-09 14:42:14 +000044 DilationSmallerOne = "DilationSmallerOne"
Matthew Haddonb6b59e32021-10-07 17:19:20 +010045 PadSmallerZero = "PadSmallerZero"
46 PadLargerEqualKernel = "PadLargerEqualKernel"
47 PoolingOutputShapeMismatch = "PoolingOutputShapeMismatch"
Matthew Haddonc2025212021-10-08 21:21:05 +010048 ScaleNotTrue = "ScaleNotTrue"
49 ScaleTrue = "ScaleTrue"
Matthew Haddone807aae2021-10-11 18:12:58 +010050 TensorSizeInputOutputMismatch = "TensorSizeInputOutputMismatch"
51 StartSmallerZero = "StartSmallerZero"
52 SizeSmallerEqualZero = "SizeSmallerEqualZero"
53 StartSizeOutsideBounds = "StartSizeOutsideBounds"
54 SizeOutputShapeMismatch = "SizeOutputShapeMismatch"
55 InputSizeStartLengthMismatch = "InputSizeStartLengthMismatch"
56 IndexOutsideBounds = "IndexOutsideBounds"
57 IndexUsedTwice = "IndexUsedTwice"
Matthew Haddonbb5676f2021-10-13 11:30:30 +010058 MaxSmallerMin = "MaxSmallerMin"
59 ConcatInputRankMismatch = "ConcatInputRankMismatch"
60 ConcatInputDimMismatch = "ConcatInputDimMismatch"
Matthew Haddon01c359d2021-10-15 16:30:48 +010061 ConcatShapeSumMismatch = "ConcatShapeSumMismatch"
Matthew Haddon630c17c2021-10-14 15:05:41 +010062 CondIfInputListThenGraphMismatch = "CondIfInputListThenGraphMismatch"
63 CondIfInputListElseGraphMismatch = "CondIfInputListElseGraphMismatch"
64 CondIfOutputListThenGraphMismatch = "CondIfOutputListThenGraphMismatch"
65 CondIfOutputListElseGraphMismatch = "CondIfOutputListElseGraphMismatch"
66 InputListOutputListMismatch = "InputListOutputListMismatch"
67 InputListCondGraphMismatch = "InputListCondGraphMismatch"
68 InputListBodyGraphInputMismatch = "InputListBodyGraphInputMismatch"
69 InputListBodyGraphOutputMismatch = "InputListBodyGraphOutputMismatch"
70 CondGraphOutputNotMatchingBool = "CondGraphOutputNotMatchingBool"
Matthew Haddond6ce7252021-09-29 15:35:44 +010071