blob: c3a90687cad03f96db59b41b36f6b2b2b8b25367 [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"
Matthew Haddonc4cf0372021-10-11 09:38:10 +010034 WeightZeroPointNotZero = "WeightZeroPointNotZero"
Matthew Haddone4ecdb22021-09-28 11:38:21 +010035 OutputZeroPointNotZero = "OutputZeroPointNotZero"
Matthew Haddond6ce7252021-09-29 15:35:44 +010036 AxisSmallerZero = "AxisSmallerZero"
37 AxisLargerRank = "AxisLargerRank"
Matthew Haddonc4cf0372021-10-11 09:38:10 +010038 ArgmaxOutputShapeMismatch = "ArgmaxOutputShapeMismatch"
39 ArgmaxOutputRankMismatch = "ArgmaxOutputRankMismatch"
Matthew Haddond6ce7252021-09-29 15:35:44 +010040 ShapeOfAxisNotOne = "ShapeOfAxisNotOne"
Matthew Haddonb6b59e32021-10-07 17:19:20 +010041 KernelSmallerOne = "KernelSmallerOne"
42 StrideSmallerOne = "StrideSmallerOne"
43 PadSmallerZero = "PadSmallerZero"
44 PadLargerEqualKernel = "PadLargerEqualKernel"
45 PoolingOutputShapeMismatch = "PoolingOutputShapeMismatch"
Matthew Haddonc2025212021-10-08 21:21:05 +010046 ScaleNotTrue = "ScaleNotTrue"
47 ScaleTrue = "ScaleTrue"
Matthew Haddone807aae2021-10-11 18:12:58 +010048 TensorSizeInputOutputMismatch = "TensorSizeInputOutputMismatch"
49 StartSmallerZero = "StartSmallerZero"
50 SizeSmallerEqualZero = "SizeSmallerEqualZero"
51 StartSizeOutsideBounds = "StartSizeOutsideBounds"
52 SizeOutputShapeMismatch = "SizeOutputShapeMismatch"
53 InputSizeStartLengthMismatch = "InputSizeStartLengthMismatch"
54 IndexOutsideBounds = "IndexOutsideBounds"
55 IndexUsedTwice = "IndexUsedTwice"
Matthew Haddonbb5676f2021-10-13 11:30:30 +010056 MaxSmallerMin = "MaxSmallerMin"
57 ConcatInputRankMismatch = "ConcatInputRankMismatch"
58 ConcatInputDimMismatch = "ConcatInputDimMismatch"
Matthew Haddon01c359d2021-10-15 16:30:48 +010059 ConcatShapeSumMismatch = "ConcatShapeSumMismatch"
Matthew Haddon630c17c2021-10-14 15:05:41 +010060 CondIfInputListThenGraphMismatch = "CondIfInputListThenGraphMismatch"
61 CondIfInputListElseGraphMismatch = "CondIfInputListElseGraphMismatch"
62 CondIfOutputListThenGraphMismatch = "CondIfOutputListThenGraphMismatch"
63 CondIfOutputListElseGraphMismatch = "CondIfOutputListElseGraphMismatch"
64 InputListOutputListMismatch = "InputListOutputListMismatch"
65 InputListCondGraphMismatch = "InputListCondGraphMismatch"
66 InputListBodyGraphInputMismatch = "InputListBodyGraphInputMismatch"
67 InputListBodyGraphOutputMismatch = "InputListBodyGraphOutputMismatch"
68 CondGraphOutputNotMatchingBool = "CondGraphOutputNotMatchingBool"
Matthew Haddond6ce7252021-09-29 15:35:44 +010069
Matthew Haddone86fd342021-09-07 16:12:21 +010070