diff options
author | Sadik Armagan <sadik.armagan@arm.com> | 2022-08-05 16:12:49 +0100 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2022-08-29 10:11:09 +0100 |
commit | 90a119b9c992de662d3719b04f03735b96259f65 (patch) | |
tree | 1b4ea68c8f66e726373814682e747cea8f50be51 /delegate/src/Pooling.hpp | |
parent | c814e8031dfe9565e94cf89ef193b6af944c73b1 (diff) | |
download | armnn-90a119b9c992de662d3719b04f03735b96259f65.tar.gz |
IVGCVSW-7154 'Constant Tensors As Inputs'
* Fixed the issues about converting Conv2D and DepthwiseConv2d input issues
* Read 1D input tensors that do not have shape specified
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: I12f3d1c57a2afedac42c6e7b31e4b1fc689abeca
Diffstat (limited to 'delegate/src/Pooling.hpp')
-rw-r--r-- | delegate/src/Pooling.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/delegate/src/Pooling.hpp b/delegate/src/Pooling.hpp index df8c3db727..dfe90cb1f9 100644 --- a/delegate/src/Pooling.hpp +++ b/delegate/src/Pooling.hpp @@ -47,7 +47,7 @@ TfLiteStatus VisitPooling2dOperator(DelegateData& delegateData, } const armnn::TensorInfo& inputTensorInfo = GetTensorInfoForTfLiteTensor(tfLiteInputTensor); - const armnn::TensorInfo& outputTensorInfo = GetTensorInfoForTfLiteTensor(tfLiteOutputTensor); + const armnn::TensorInfo& outputTensorInfo = GetTensorInfoForTfLiteTensor(tfLiteOutputTensor, true); armnn::PoolingAlgorithm poolingAlgorithm; switch(tfLitePoolingOperatorCode) @@ -145,7 +145,7 @@ TfLiteStatus VisitPooling3dOperator(DelegateData& delegateData, } // Set the input and output info const armnn::TensorInfo& inputTensorInfo = GetTensorInfoForTfLiteTensor(tfLiteInputTensor); - const armnn::TensorInfo& outputTensorInfo = GetTensorInfoForTfLiteTensor(tfLiteOutputTensor); + const armnn::TensorInfo& outputTensorInfo = GetTensorInfoForTfLiteTensor(tfLiteOutputTensor, true); // Custom Operators are defined by the name string associated to the operator. Use this to determine // which pooling algorithm to create the armnn operator with. L2 Pooling3D is unsupported in TfLite. |