Matthew Haddon | e86fd34 | 2021-09-07 16:12:21 +0100 | [diff] [blame] | 1 | # 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 | |
| 15 | class 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 Haddon | 848efb4 | 2021-09-09 12:30:53 +0100 | [diff] [blame] | 25 | WrongInputType = "WrongInputType" |
| 26 | WrongOutputType = "WrongOutputType" |
| 27 | WrongInputList = "WrongInputList" |
| 28 | WrongOutputList = "WrongOutputList" |
| 29 | WrongRank = "WrongRank" |
Matthew Haddon | 693ba9e | 2021-09-22 11:24:37 +0100 | [diff] [blame] | 30 | BatchMismatch = "BatchMismatch" |
| 31 | ChannelMismatch = "ChannelMismatch" |
Matthew Haddon | eacff9a | 2021-09-24 14:42:13 +0100 | [diff] [blame] | 32 | RankMismatch = "RankMismatch" |
Jeremy Johnson | 7e9ac9a | 2021-11-08 18:10:51 +0000 | [diff] [blame^] | 33 | DimensionMismatch = "DimensionMismatch" |
Matthew Haddon | e4ecdb2 | 2021-09-28 11:38:21 +0100 | [diff] [blame] | 34 | InputZeroPointNotZero = "InputZeroPointNotZero" |
Matthew Haddon | c4cf037 | 2021-10-11 09:38:10 +0100 | [diff] [blame] | 35 | WeightZeroPointNotZero = "WeightZeroPointNotZero" |
Matthew Haddon | e4ecdb2 | 2021-09-28 11:38:21 +0100 | [diff] [blame] | 36 | OutputZeroPointNotZero = "OutputZeroPointNotZero" |
Matthew Haddon | d6ce725 | 2021-09-29 15:35:44 +0100 | [diff] [blame] | 37 | AxisSmallerZero = "AxisSmallerZero" |
| 38 | AxisLargerRank = "AxisLargerRank" |
Matthew Haddon | c4cf037 | 2021-10-11 09:38:10 +0100 | [diff] [blame] | 39 | ArgmaxOutputShapeMismatch = "ArgmaxOutputShapeMismatch" |
| 40 | ArgmaxOutputRankMismatch = "ArgmaxOutputRankMismatch" |
Matthew Haddon | d6ce725 | 2021-09-29 15:35:44 +0100 | [diff] [blame] | 41 | ShapeOfAxisNotOne = "ShapeOfAxisNotOne" |
Matthew Haddon | b6b59e3 | 2021-10-07 17:19:20 +0100 | [diff] [blame] | 42 | KernelSmallerOne = "KernelSmallerOne" |
| 43 | StrideSmallerOne = "StrideSmallerOne" |
| 44 | PadSmallerZero = "PadSmallerZero" |
| 45 | PadLargerEqualKernel = "PadLargerEqualKernel" |
| 46 | PoolingOutputShapeMismatch = "PoolingOutputShapeMismatch" |
Matthew Haddon | c202521 | 2021-10-08 21:21:05 +0100 | [diff] [blame] | 47 | ScaleNotTrue = "ScaleNotTrue" |
| 48 | ScaleTrue = "ScaleTrue" |
Matthew Haddon | e807aae | 2021-10-11 18:12:58 +0100 | [diff] [blame] | 49 | TensorSizeInputOutputMismatch = "TensorSizeInputOutputMismatch" |
| 50 | StartSmallerZero = "StartSmallerZero" |
| 51 | SizeSmallerEqualZero = "SizeSmallerEqualZero" |
| 52 | StartSizeOutsideBounds = "StartSizeOutsideBounds" |
| 53 | SizeOutputShapeMismatch = "SizeOutputShapeMismatch" |
| 54 | InputSizeStartLengthMismatch = "InputSizeStartLengthMismatch" |
| 55 | IndexOutsideBounds = "IndexOutsideBounds" |
| 56 | IndexUsedTwice = "IndexUsedTwice" |
Matthew Haddon | bb5676f | 2021-10-13 11:30:30 +0100 | [diff] [blame] | 57 | MaxSmallerMin = "MaxSmallerMin" |
| 58 | ConcatInputRankMismatch = "ConcatInputRankMismatch" |
| 59 | ConcatInputDimMismatch = "ConcatInputDimMismatch" |
Matthew Haddon | 01c359d | 2021-10-15 16:30:48 +0100 | [diff] [blame] | 60 | ConcatShapeSumMismatch = "ConcatShapeSumMismatch" |
Matthew Haddon | 630c17c | 2021-10-14 15:05:41 +0100 | [diff] [blame] | 61 | CondIfInputListThenGraphMismatch = "CondIfInputListThenGraphMismatch" |
| 62 | CondIfInputListElseGraphMismatch = "CondIfInputListElseGraphMismatch" |
| 63 | CondIfOutputListThenGraphMismatch = "CondIfOutputListThenGraphMismatch" |
| 64 | CondIfOutputListElseGraphMismatch = "CondIfOutputListElseGraphMismatch" |
| 65 | InputListOutputListMismatch = "InputListOutputListMismatch" |
| 66 | InputListCondGraphMismatch = "InputListCondGraphMismatch" |
| 67 | InputListBodyGraphInputMismatch = "InputListBodyGraphInputMismatch" |
| 68 | InputListBodyGraphOutputMismatch = "InputListBodyGraphOutputMismatch" |
| 69 | CondGraphOutputNotMatchingBool = "CondGraphOutputNotMatchingBool" |
Matthew Haddon | d6ce725 | 2021-09-29 15:35:44 +0100 | [diff] [blame] | 70 | |
Matthew Haddon | e86fd34 | 2021-09-07 16:12:21 +0100 | [diff] [blame] | 71 | |