IVGCVSW-5224 Fix for UnknownDimensionsTest in CpuRef and GpuAcc

* Correctly handle HalOperandLifeTime::NO_VALUE in ConvertTranspose
Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I36790a90b5a3eac3da9e4edafc96387bb4375db9
diff --git a/ConversionUtils.hpp b/ConversionUtils.hpp
index 51727a3..27d0720 100644
--- a/ConversionUtils.hpp
+++ b/ConversionUtils.hpp
@@ -3872,6 +3872,7 @@
 bool ConvertTranspose(const HalOperation& operation, const HalModel& model, ConversionData& data)
 {
     using HalOperand = typename HalPolicy::Operand;
+    using HalOperandLifeTime = typename HalPolicy::OperandLifeTime;
 
     LayerInputHandle input = ConvertToLayerInputHandle<HalPolicy>(operation, 0, model, data);
     if (!input.IsValid())
@@ -3891,9 +3892,8 @@
     const HalOperand* permOperand = GetInputOperand<HalPolicy>(operation, 1, model, false);
 
     std::vector<int32_t> perm(rank);
-    if (!permOperand)
+    if (!permOperand || (permOperand->lifetime == HalOperandLifeTime::NO_VALUE))
     {
-        // NOTE: If perm is not given, it is set to (n-1...0), where n is the rank of the tensor
         for (unsigned int i = rank; i > 0; i--)
         {
             perm[rank - i] = boost::numeric_cast<int> (i - 1);