From c55cef103a329a4e203c929276ed02ac45820de1 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 1 Aug 2018 15:24:18 +0100 Subject: COMPMID-1188: Expose FullyConnectedLayer info metadata at graph level Change-Id: I7670f79209a1e4439d57e05c1f5c576f600971cb Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/142299 Tested-by: Jenkins Reviewed-by: Anthony Barbier --- arm_compute/core/Types.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'arm_compute/core/Types.h') diff --git a/arm_compute/core/Types.h b/arm_compute/core/Types.h index 343952f0b2..00370918bd 100644 --- a/arm_compute/core/Types.h +++ b/arm_compute/core/Types.h @@ -689,6 +689,18 @@ struct FullyConnectedLayerInfo bool transpose_weights{ true }; /**< Transpose weights if true. */ bool are_weights_reshaped{ false }; /**< Reshape the weights tensor if false. */ bool retain_internal_weights{ false }; /**< Retain internal reshaped weights. */ + + /** Sets the weights trained data layout + * + * @param[in] layout Data layout that the weights were trained with + * + * @return Updated object + */ + FullyConnectedLayerInfo &set_weights_trained_layout(DataLayout layout) + { + weights_trained_layout = layout; + return *this; + } }; /** Pooling Layer Information class */ -- cgit v1.2.1