aboutsummaryrefslogtreecommitdiff
path: root/src/backends/backendsCommon/LayerSupportRules.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/backends/backendsCommon/LayerSupportRules.hpp')
-rw-r--r--src/backends/backendsCommon/LayerSupportRules.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/backends/backendsCommon/LayerSupportRules.hpp b/src/backends/backendsCommon/LayerSupportRules.hpp
index d8b6af8a30..3a2ae06f5a 100644
--- a/src/backends/backendsCommon/LayerSupportRules.hpp
+++ b/src/backends/backendsCommon/LayerSupportRules.hpp
@@ -106,6 +106,14 @@ struct TypeIs : public Rule
}
};
+struct TypeNotPerAxisQuantized : public Rule
+{
+ TypeNotPerAxisQuantized(const TensorInfo& info)
+ {
+ m_Res = !info.IsQuantized() || !info.HasPerAxisQuantization();
+ }
+};
+
struct BiasAndWeightsTypesMatch : public Rule
{
BiasAndWeightsTypesMatch(const TensorInfo& biases, const TensorInfo& weights)