aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/CL/kernels/CLFuseBatchNormalizationKernel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/CL/kernels/CLFuseBatchNormalizationKernel.cpp b/src/core/CL/kernels/CLFuseBatchNormalizationKernel.cpp
index 61e2b2700a..357231940b 100644
--- a/src/core/CL/kernels/CLFuseBatchNormalizationKernel.cpp
+++ b/src/core/CL/kernels/CLFuseBatchNormalizationKernel.cpp
@@ -120,6 +120,8 @@ void CLFuseBatchNormalizationKernel::configure(const CLCompileContext &compile_c
{
ARM_COMPUTE_ERROR_ON_NULLPTR(input_weights, bn_mean, bn_var);
+ auto padding_info = get_padding_info({ input_weights, bn_mean, bn_var, fused_weights, fused_bias, input_bias, bn_beta, bn_gamma });
+
_input_weights = input_weights;
_input_bias = input_bias;
_bn_mean = bn_mean;
@@ -172,6 +174,8 @@ void CLFuseBatchNormalizationKernel::configure(const CLCompileContext &compile_c
// Create kernel
_kernel = create_kernel(compile_context, "fuse_batchnormalization_layer", build_opts.options());
+
+ ARM_COMPUTE_ERROR_ON(has_padding_changed(padding_info));
}
Status CLFuseBatchNormalizationKernel::validate(const ITensorInfo *input_weights, const ITensorInfo *bn_mean, const ITensorInfo *bn_var,