diff options
-rw-r--r-- | 1.2/HalPolicy.cpp | 8 | ||||
-rw-r--r-- | ConversionUtils.hpp | 1 | ||||
-rw-r--r-- | Utils.cpp | 3 |
3 files changed, 9 insertions, 3 deletions
diff --git a/1.2/HalPolicy.cpp b/1.2/HalPolicy.cpp index b3ccc47f..1811688f 100644 --- a/1.2/HalPolicy.cpp +++ b/1.2/HalPolicy.cpp @@ -279,9 +279,11 @@ bool HalPolicy::ConvertComparison(const Operation& operation, IConnectableLayer* layer = data.m_Network->AddComparisonLayer(descriptor); assert(layer != nullptr); - - input0.Connect(layer->GetInputSlot(0)); - input1.Connect(layer->GetInputSlot(1)); + bool isReshapeSupported = BroadcastTensor(input0, input1, layer, data); + if (!isReshapeSupported) + { + return false; + } return SetupAndTrackLayerOutputSlot<hal_1_2::HalPolicy>(operation, 0, *layer, model, data); } diff --git a/ConversionUtils.hpp b/ConversionUtils.hpp index d4ca4345..90b1c7de 100644 --- a/ConversionUtils.hpp +++ b/ConversionUtils.hpp @@ -189,6 +189,7 @@ inline bool IsOperandTypeSupportedForTensors(V1_0::OperandType type) inline bool IsOperandTypeSupportedForTensors(V1_2::OperandType type) { return type == V1_2::OperandType::BOOL || + type == V1_2::OperandType::TENSOR_BOOL8 || type == V1_2::OperandType::TENSOR_FLOAT16 || type == V1_2::OperandType::TENSOR_FLOAT32 || type == V1_2::OperandType::TENSOR_QUANT8_ASYMM || @@ -113,6 +113,9 @@ armnn::TensorInfo GetTensorInfoForOperand(const V1_2::Operand& operand) DataType type; switch (operand.type) { + case V1_2::OperandType::TENSOR_BOOL8: + type = armnn::DataType::Boolean; + break; case V1_2::OperandType::TENSOR_FLOAT32: type = armnn::DataType::Float32; break; |