aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/kernels/CLFloorKernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/CL/kernels/CLFloorKernel.cpp')
-rw-r--r--src/core/CL/kernels/CLFloorKernel.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/CL/kernels/CLFloorKernel.cpp b/src/core/CL/kernels/CLFloorKernel.cpp
index 6c9f83f166..11f8e33319 100644
--- a/src/core/CL/kernels/CLFloorKernel.cpp
+++ b/src/core/CL/kernels/CLFloorKernel.cpp
@@ -44,10 +44,8 @@ void CLFloorKernel::configure(const ICLTensor *input, ICLTensor *output)
{
ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
- set_shape_if_empty(*output->info(), input->info()->tensor_shape());
-
- set_data_type_if_unknown(*input->info(), DataType::F32);
- set_data_type_if_unknown(*output->info(), DataType::F32);
+ // Auto initialize output
+ auto_init_if_empty(*output->info(), input->info()->tensor_shape(), 1, input->info()->data_type(), input->info()->fixed_point_position());
ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::F32);
ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES(input, output);