aboutsummaryrefslogtreecommitdiff
path: root/examples/graph_mobilenet_v2.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2021-06-15 10:11:47 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2021-06-15 16:54:09 +0000
commit450dfb1b4d719d60295bfae56f4c46dcaf044d72 (patch)
tree1cd255f7bf4048934af293a4bd6083dfdf106a4b /examples/graph_mobilenet_v2.cpp
parentc6f4ec377027b21a67061efd21b65609079f98f9 (diff)
downloadComputeLibrary-450dfb1b4d719d60295bfae56f4c46dcaf044d72.tar.gz
Add `batches` options in the graph examples
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Change-Id: Ib0442a25cb60793f530e1cff5e2aaf167d4a6950 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5812 Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'examples/graph_mobilenet_v2.cpp')
-rw-r--r--examples/graph_mobilenet_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/graph_mobilenet_v2.cpp b/examples/graph_mobilenet_v2.cpp
index b1b33be2f5..c027e6f13e 100644
--- a/examples/graph_mobilenet_v2.cpp
+++ b/examples/graph_mobilenet_v2.cpp
@@ -64,7 +64,7 @@ public:
std::cout << common_params << std::endl;
// Create input descriptor
- const TensorShape tensor_shape = permute_shape(TensorShape(224U, 224U, 3U, 1U), DataLayout::NCHW, common_params.data_layout);
+ const TensorShape tensor_shape = permute_shape(TensorShape(224U, 224U, 3U, common_params.batches), DataLayout::NCHW, common_params.data_layout);
TensorDescriptor input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_layout(common_params.data_layout);
// Set graph hints