diff options
author | Teresa Charlin <teresa.charlinreyes@arm.com> | 2020-06-09 18:00:20 +0100 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2020-06-26 12:00:16 +0000 |
commit | cdc0149ffe40f14ff4695149d9bdf551f8e07702 (patch) | |
tree | 0d0d34c0c3332d2e78f6272de536ae8c4dd809bc /include/armnn/Types.hpp | |
parent | 1db8b822324c4d2c3e55cf3966cfae36757793b5 (diff) | |
download | armnn-cdc0149ffe40f14ff4695149d9bdf551f8e07702.tar.gz |
IVGCVSW-4928 Introduce "ShapeInferenceMethod" Option.
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Change-Id: I70ef1a9f3cefa1d4cf9220f0e13131d11e7c6418
Diffstat (limited to 'include/armnn/Types.hpp')
-rw-r--r-- | include/armnn/Types.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/armnn/Types.hpp b/include/armnn/Types.hpp index 7c8a533e60..fb6f134766 100644 --- a/include/armnn/Types.hpp +++ b/include/armnn/Types.hpp @@ -143,6 +143,22 @@ enum class OutputShapeRounding Ceiling = 1 }; +/// +/// The ShapeInferenceMethod modify how the output shapes are treated. +/// When ValidateOnly is selected, the output shapes are inferred from the input parameters of the layer +/// and any mismatch is reported. +/// When InferAndValidate is selected 2 actions must be performed: (1)infer output shape from inputs and (2)validate the +/// shapes as in ValidateOnly. This option has been added to work with tensors which rank or dimension sizes are not +/// specified explicitly, however this information can be calculated from the inputs. +/// +enum class ShapeInferenceMethod +{ + /// Validate all output shapes + ValidateOnly = 0, + /// Infer missing output shapes and validate all output shapes + InferAndValidate = 1 +}; + /// Each backend should implement an IBackend. class IBackend { |