From cac13b1cfd593889271f8e2191be2039b8d88f36 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 27 Apr 2018 19:07:19 +0100 Subject: COMPMID-1097: Port mobilenet to NHWC Change-Id: I789065bfa0d4ef133388e1904c5caf31e450f80f Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/129495 Tested-by: Jenkins Reviewed-by: Anthony Barbier --- arm_compute/graph/Utils.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'arm_compute/graph/Utils.h') diff --git a/arm_compute/graph/Utils.h b/arm_compute/graph/Utils.h index 83deb70348..582d47e406 100644 --- a/arm_compute/graph/Utils.h +++ b/arm_compute/graph/Utils.h @@ -94,6 +94,22 @@ PassManager create_default_pass_manager(Target target); * @param[in] ctx Graph Context */ void setup_default_graph_context(GraphContext &ctx); +/** Get size of a tensor's given dimension depending on its layout + * + * @param[in] descriptor Descriptor + * @param[in] data_layout_dimension Tensor data layout dimension + * + * @return Size of requested dimension + */ +size_t get_dimension_size(const TensorDescriptor &descriptor, const DataLayoutDimension data_layout_dimension); +/** Get index of a tensor's given dimension depending on its layout + * + * @param[in] descriptor Descriptor + * @param[in] data_layout_dimension Tensor data layout dimension + * + * @return Idx of given dimension + */ +size_t get_dimension_idx(const TensorDescriptor &descriptor, const DataLayoutDimension data_layout_dimension); } // namespace graph } // namespace arm_compute #endif /* __ARM_COMPUTE_GRAPH_UTILS_H__ */ -- cgit v1.2.1