You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: imresize_gpu.m
    path of file: ./repos/TADT/utils
    
    the code of the file until where you have to start completion: function [re_image] = imresize_gpu(image,re_param)
%This file implements the imresize function running on GPU based on
%vl_nnbilinearsampler.
% Input:
% image         -      image to be processed, gpuArray
% re_param      -   if its size is one, it is the ratio that to be resized
%               -   if it contains two numbers, it is the resized size.
% Output:
% re_image  -      the resized image.
% By Xin Li, 2018-6-5, UCM

if numel(re_param)==1
    sz = size(image);

    
function [re_image] = imresize_gpu(image,re_param)
%This file implements the imresize function running on GPU based on
%vl_nnbilinearsampler.
% Input:
% image         -      image to be processed, gpuArray
% re_param      -   if its size is one, it is the ratio that to be resized
%               -   if it contains two numbers, it is the resized size.
% Output:
% re_image  -      the resized image.
% By Xin Li, 2018-6-5, UCM

if numel(re_param)==1
    sz = size(image);
    output_sz = round(sz(1:2)*re_param);
else
    output_sz = re_param;
end