Jeremy Johnson | 5c1364c | 2022-01-13 15:04:21 +0000 | [diff] [blame^] | 1 | # Copyright (c) 2021-2022, ARM Limited. |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | |
Matthew Haddon | e86fd34 | 2021-09-07 16:12:21 +0100 | [diff] [blame] | 4 | |
| 5 | class ErrorIf(object): |
| 6 | MaxDimExceeded = "MaxDimExceeded" |
| 7 | StrideSmallerEqualZero = "StrideSmallerEqualZero" |
| 8 | StrideLargerEqualMax = "StrideLargerEqualMax" |
| 9 | StrideLargerDimension = "StrideLargerDimension" |
| 10 | OffsetSmallerEqualMin = "OffsetSmallerEqualMin" |
| 11 | OffsetLargerEqualMax = "OffsetLargerEqualMax" |
| 12 | ShiftNotZero = "ShiftNotZero" |
| 13 | ShiftSmallerOne = "ShiftSmallerOne" |
| 14 | ShiftLargerEleven = "ShiftLargerEleven" |
Matthew Haddon | 848efb4 | 2021-09-09 12:30:53 +0100 | [diff] [blame] | 15 | WrongInputType = "WrongInputType" |
| 16 | WrongOutputType = "WrongOutputType" |
| 17 | WrongInputList = "WrongInputList" |
| 18 | WrongOutputList = "WrongOutputList" |
| 19 | WrongRank = "WrongRank" |
Matthew Haddon | 693ba9e | 2021-09-22 11:24:37 +0100 | [diff] [blame] | 20 | BatchMismatch = "BatchMismatch" |
| 21 | ChannelMismatch = "ChannelMismatch" |
Matthew Haddon | eacff9a | 2021-09-24 14:42:13 +0100 | [diff] [blame] | 22 | RankMismatch = "RankMismatch" |
Jeremy Johnson | 7e9ac9a | 2021-11-08 18:10:51 +0000 | [diff] [blame] | 23 | DimensionMismatch = "DimensionMismatch" |
Matthew Haddon | e4ecdb2 | 2021-09-28 11:38:21 +0100 | [diff] [blame] | 24 | InputZeroPointNotZero = "InputZeroPointNotZero" |
Matthew Haddon | c4cf037 | 2021-10-11 09:38:10 +0100 | [diff] [blame] | 25 | WeightZeroPointNotZero = "WeightZeroPointNotZero" |
Matthew Haddon | e4ecdb2 | 2021-09-28 11:38:21 +0100 | [diff] [blame] | 26 | OutputZeroPointNotZero = "OutputZeroPointNotZero" |
Matthew Haddon | d6ce725 | 2021-09-29 15:35:44 +0100 | [diff] [blame] | 27 | AxisSmallerZero = "AxisSmallerZero" |
| 28 | AxisLargerRank = "AxisLargerRank" |
Matthew Haddon | c4cf037 | 2021-10-11 09:38:10 +0100 | [diff] [blame] | 29 | ArgmaxOutputShapeMismatch = "ArgmaxOutputShapeMismatch" |
| 30 | ArgmaxOutputRankMismatch = "ArgmaxOutputRankMismatch" |
Matthew Haddon | d6ce725 | 2021-09-29 15:35:44 +0100 | [diff] [blame] | 31 | ShapeOfAxisNotOne = "ShapeOfAxisNotOne" |
Matthew Haddon | b6b59e3 | 2021-10-07 17:19:20 +0100 | [diff] [blame] | 32 | KernelSmallerOne = "KernelSmallerOne" |
| 33 | StrideSmallerOne = "StrideSmallerOne" |
Les Bell | 0e027d4 | 2021-11-09 14:42:14 +0000 | [diff] [blame] | 34 | DilationSmallerOne = "DilationSmallerOne" |
Matthew Haddon | b6b59e3 | 2021-10-07 17:19:20 +0100 | [diff] [blame] | 35 | PadSmallerZero = "PadSmallerZero" |
| 36 | PadLargerEqualKernel = "PadLargerEqualKernel" |
| 37 | PoolingOutputShapeMismatch = "PoolingOutputShapeMismatch" |
Matthew Haddon | c202521 | 2021-10-08 21:21:05 +0100 | [diff] [blame] | 38 | ScaleNotTrue = "ScaleNotTrue" |
| 39 | ScaleTrue = "ScaleTrue" |
Matthew Haddon | e807aae | 2021-10-11 18:12:58 +0100 | [diff] [blame] | 40 | TensorSizeInputOutputMismatch = "TensorSizeInputOutputMismatch" |
| 41 | StartSmallerZero = "StartSmallerZero" |
| 42 | SizeSmallerEqualZero = "SizeSmallerEqualZero" |
| 43 | StartSizeOutsideBounds = "StartSizeOutsideBounds" |
| 44 | SizeOutputShapeMismatch = "SizeOutputShapeMismatch" |
| 45 | InputSizeStartLengthMismatch = "InputSizeStartLengthMismatch" |
| 46 | IndexOutsideBounds = "IndexOutsideBounds" |
| 47 | IndexUsedTwice = "IndexUsedTwice" |
Matthew Haddon | bb5676f | 2021-10-13 11:30:30 +0100 | [diff] [blame] | 48 | MaxSmallerMin = "MaxSmallerMin" |
| 49 | ConcatInputRankMismatch = "ConcatInputRankMismatch" |
| 50 | ConcatInputDimMismatch = "ConcatInputDimMismatch" |
Matthew Haddon | 01c359d | 2021-10-15 16:30:48 +0100 | [diff] [blame] | 51 | ConcatShapeSumMismatch = "ConcatShapeSumMismatch" |
Matthew Haddon | 630c17c | 2021-10-14 15:05:41 +0100 | [diff] [blame] | 52 | CondIfInputListThenGraphMismatch = "CondIfInputListThenGraphMismatch" |
| 53 | CondIfInputListElseGraphMismatch = "CondIfInputListElseGraphMismatch" |
| 54 | CondIfOutputListThenGraphMismatch = "CondIfOutputListThenGraphMismatch" |
| 55 | CondIfOutputListElseGraphMismatch = "CondIfOutputListElseGraphMismatch" |
| 56 | InputListOutputListMismatch = "InputListOutputListMismatch" |
| 57 | InputListCondGraphMismatch = "InputListCondGraphMismatch" |
| 58 | InputListBodyGraphInputMismatch = "InputListBodyGraphInputMismatch" |
| 59 | InputListBodyGraphOutputMismatch = "InputListBodyGraphOutputMismatch" |
| 60 | CondGraphOutputNotMatchingBool = "CondGraphOutputNotMatchingBool" |