aboutsummaryrefslogtreecommitdiff
path: root/src/graph/nodes/SoftmaxLayer.cpp
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2017-10-31 15:04:34 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commited194b1fbec6627896c5c12f74460b9142b98f7d (patch)
tree697885db357cedde0b8c4db96257f62238e2c1ec /src/graph/nodes/SoftmaxLayer.cpp
parent6f31f8c50a3d409b1ec587efba406454b53e9452 (diff)
downloadComputeLibrary-ed194b1fbec6627896c5c12f74460b9142b98f7d.tar.gz
COMPMID-556 Add macro for checking graph's tensor object
Change-Id: I1de1c2932c9906b23b49e18bd82c173846d98723 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93860 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Diffstat (limited to 'src/graph/nodes/SoftmaxLayer.cpp')
-rw-r--r--src/graph/nodes/SoftmaxLayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph/nodes/SoftmaxLayer.cpp b/src/graph/nodes/SoftmaxLayer.cpp
index 62057c770c..7f2325b312 100644
--- a/src/graph/nodes/SoftmaxLayer.cpp
+++ b/src/graph/nodes/SoftmaxLayer.cpp
@@ -23,6 +23,7 @@
*/
#include "arm_compute/graph/nodes/SoftmaxLayer.h"
+#include "arm_compute/graph/Error.h"
#include "arm_compute/graph/NodeContext.h"
#include "arm_compute/graph/OperationRegistry.h"
#include "support/ToolchainSupport.h"
@@ -31,8 +32,7 @@ using namespace arm_compute::graph;
std::unique_ptr<arm_compute::IFunction> SoftmaxLayer::instantiate_node(GraphContext &ctx, ITensorObject *input, ITensorObject *output)
{
- ARM_COMPUTE_ERROR_ON(input == nullptr || input->tensor() == nullptr);
- ARM_COMPUTE_ERROR_ON(output == nullptr || output->tensor() == nullptr);
+ ARM_COMPUTE_ERROR_ON_UNALLOCATED_TENSOR_OBJECT(input, output);
arm_compute::ITensor *in = input->tensor();
arm_compute::ITensor *out = output->tensor();