From dce7bef58a6afba14e2238f3b505d879bd31ff01 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 2 Jul 2018 18:20:40 +0100 Subject: COMPMID-1323: Added proper messages in graph NodeValidators. Change-Id: I5f66c897c552c41c12bbc2244f866be93d5032d0 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/138393 Reviewed-by: Michele DiGiorgio Tested-by: Jenkins --- src/graph/backends/GLES/GCNodeValidator.cpp | 4 ++-- src/graph/backends/NEON/NENodeValidator.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/graph') diff --git a/src/graph/backends/GLES/GCNodeValidator.cpp b/src/graph/backends/GLES/GCNodeValidator.cpp index 1e89265382..4bef89329a 100644 --- a/src/graph/backends/GLES/GCNodeValidator.cpp +++ b/src/graph/backends/GLES/GCNodeValidator.cpp @@ -110,9 +110,9 @@ Status GCNodeValidator::validate(INode *node) case NodeType::DepthwiseConvolutionLayer: return validate_depthwise_convolution_layer(*polymorphic_downcast(node)); case NodeType::FlattenLayer: - return ARM_COMPUTE_CREATE_ERROR(arm_compute::ErrorCode::RUNTIME_ERROR, "Unsupported operation"); + return ARM_COMPUTE_CREATE_ERROR(arm_compute::ErrorCode::RUNTIME_ERROR, "Unsupported operation : FlattenLayer"); case NodeType::ReshapeLayer: - return ARM_COMPUTE_CREATE_ERROR(arm_compute::ErrorCode::RUNTIME_ERROR, "Unsupported operation"); + return ARM_COMPUTE_CREATE_ERROR(arm_compute::ErrorCode::RUNTIME_ERROR, "Unsupported operation : ReshapeLayer"); default: return Status{}; } diff --git a/src/graph/backends/NEON/NENodeValidator.cpp b/src/graph/backends/NEON/NENodeValidator.cpp index 1c17f92fa1..58589d5449 100644 --- a/src/graph/backends/NEON/NENodeValidator.cpp +++ b/src/graph/backends/NEON/NENodeValidator.cpp @@ -48,7 +48,7 @@ Status NENodeValidator::validate(INode *node) switch(type) { case NodeType::ChannelShuffleLayer: - return ARM_COMPUTE_CREATE_ERROR(arm_compute::ErrorCode::RUNTIME_ERROR, "Channel Shuffle is unsupported for NEON"); + return ARM_COMPUTE_CREATE_ERROR(arm_compute::ErrorCode::RUNTIME_ERROR, "Unsupported operation : ChannelShuffleLayer"); case NodeType::ConvolutionLayer: return detail::validate_convolution_layer