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" |
Matthew Haddon | e4ecdb2 | 2021-09-28 11:38:21 +0100 | [diff] [blame] | 33 | InputZeroPointNotZero = "InputZeroPointNotZero" |
| 34 | OutputZeroPointNotZero = "OutputZeroPointNotZero" |
Matthew Haddon | d6ce725 | 2021-09-29 15:35:44 +0100 | [diff] [blame^] | 35 | AxisSmallerZero = "AxisSmallerZero" |
| 36 | AxisLargerRank = "AxisLargerRank" |
| 37 | ShapeOfAxisNotOne = "ShapeOfAxisNotOne" |
| 38 | |
Matthew Haddon | e86fd34 | 2021-09-07 16:12:21 +0100 | [diff] [blame] | 39 | |