diff options
Diffstat (limited to 'src/graph/nodes/BatchNormalizationLayer.cpp')
-rw-r--r-- | src/graph/nodes/BatchNormalizationLayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph/nodes/BatchNormalizationLayer.cpp b/src/graph/nodes/BatchNormalizationLayer.cpp index a433f39dc4..1fc83e4f69 100644 --- a/src/graph/nodes/BatchNormalizationLayer.cpp +++ b/src/graph/nodes/BatchNormalizationLayer.cpp @@ -23,6 +23,7 @@ */ #include "arm_compute/graph/nodes/BatchNormalizationLayer.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> BatchNormalizationLayer::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(); |