blob: 70702050b521a8082027699b32ab1de2d2dc32b2 [file] [log] [blame]
Jeremy Johnson5c1364c2022-01-13 15:04:21 +00001# Copyright (c) 2021-2022, ARM Limited.
2# SPDX-License-Identifier: Apache-2.0
3
Matthew Haddone86fd342021-09-07 16:12:21 +01004
5class 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 Haddon848efb42021-09-09 12:30:53 +010015 WrongInputType = "WrongInputType"
16 WrongOutputType = "WrongOutputType"
17 WrongInputList = "WrongInputList"
18 WrongOutputList = "WrongOutputList"
19 WrongRank = "WrongRank"
Matthew Haddon693ba9e2021-09-22 11:24:37 +010020 BatchMismatch = "BatchMismatch"
21 ChannelMismatch = "ChannelMismatch"
Matthew Haddoneacff9a2021-09-24 14:42:13 +010022 RankMismatch = "RankMismatch"
Jeremy Johnson7e9ac9a2021-11-08 18:10:51 +000023 DimensionMismatch = "DimensionMismatch"
Matthew Haddone4ecdb22021-09-28 11:38:21 +010024 InputZeroPointNotZero = "InputZeroPointNotZero"
Matthew Haddonc4cf0372021-10-11 09:38:10 +010025 WeightZeroPointNotZero = "WeightZeroPointNotZero"
Matthew Haddone4ecdb22021-09-28 11:38:21 +010026 OutputZeroPointNotZero = "OutputZeroPointNotZero"
Matthew Haddond6ce7252021-09-29 15:35:44 +010027 AxisSmallerZero = "AxisSmallerZero"
28 AxisLargerRank = "AxisLargerRank"
Matthew Haddonc4cf0372021-10-11 09:38:10 +010029 ArgmaxOutputShapeMismatch = "ArgmaxOutputShapeMismatch"
30 ArgmaxOutputRankMismatch = "ArgmaxOutputRankMismatch"
Matthew Haddond6ce7252021-09-29 15:35:44 +010031 ShapeOfAxisNotOne = "ShapeOfAxisNotOne"
Matthew Haddonb6b59e32021-10-07 17:19:20 +010032 KernelSmallerOne = "KernelSmallerOne"
33 StrideSmallerOne = "StrideSmallerOne"
Les Bell0e027d42021-11-09 14:42:14 +000034 DilationSmallerOne = "DilationSmallerOne"
Matthew Haddonb6b59e32021-10-07 17:19:20 +010035 PadSmallerZero = "PadSmallerZero"
36 PadLargerEqualKernel = "PadLargerEqualKernel"
37 PoolingOutputShapeMismatch = "PoolingOutputShapeMismatch"
Matthew Haddonc2025212021-10-08 21:21:05 +010038 ScaleNotTrue = "ScaleNotTrue"
39 ScaleTrue = "ScaleTrue"
Matthew Haddone807aae2021-10-11 18:12:58 +010040 TensorSizeInputOutputMismatch = "TensorSizeInputOutputMismatch"
41 StartSmallerZero = "StartSmallerZero"
42 SizeSmallerEqualZero = "SizeSmallerEqualZero"
43 StartSizeOutsideBounds = "StartSizeOutsideBounds"
44 SizeOutputShapeMismatch = "SizeOutputShapeMismatch"
45 InputSizeStartLengthMismatch = "InputSizeStartLengthMismatch"
46 IndexOutsideBounds = "IndexOutsideBounds"
47 IndexUsedTwice = "IndexUsedTwice"
Matthew Haddonbb5676f2021-10-13 11:30:30 +010048 MaxSmallerMin = "MaxSmallerMin"
49 ConcatInputRankMismatch = "ConcatInputRankMismatch"
50 ConcatInputDimMismatch = "ConcatInputDimMismatch"
Matthew Haddon01c359d2021-10-15 16:30:48 +010051 ConcatShapeSumMismatch = "ConcatShapeSumMismatch"
Matthew Haddon630c17c2021-10-14 15:05:41 +010052 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"