output->dimension(3) * block_size[0] * block_size[1] == input->dimension(3),
"Input batch should be equal to (output batch * block size[0] *block size[1])");
- ARM_COMPUTE_RETURN_ERROR_ON_MSG(!(input->dimension(0) % block_size[1]) &&
- !(input->dimension(1) % block_size[0]),
- "Input height and width should be divisible by block size");
+ ARM_COMPUTE_RETURN_ERROR_ON_MSG(!(output->dimension(0) % block_size[1]) &&
+ !(output->dimension(1) % block_size[0]),
+ "Output height and width should be divisible by block size[0] "
+ "and block_size[1] respectively");
+
+ ARM_COMPUTE_RETURN_ERROR_ON_MSG((output->dimension(0) == input->dimension(0) * block_size[1]) &&
+ (output->dimension(1) == input->dimension(1) * block_size[0]),
+ "Output height and width should be equal to "
+ "input_height*blocksize[0] and input_width*blocksize[1] "
+ "respectively");
return Status{};
}
!(input->dimension(1) % block_size),
"Input height and width should be divisible by block size");
+ ARM_COMPUTE_RETURN_ERROR_ON_MSG((output->dimension(0) == (input->dimension(0) / block_size)) &&
+ (output->dimension(1) == (input->dimension(1) / block_size)),
+ "Output height and width should be equal to "
+ "input_height/blocksize and input_width/blocksize respectively");
+
return Status{};
}