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: PerceptualForward.m
    path of file: ./repos/CBDNet/utils/Perceptual_Layer
    
    the code of the file until where you have to start completion: %%% edited by Guo Shi at 2018/8/21
function [perce_
    
function [perce_response] = PerceptualForward(img)
global net_load;
useGPU      = 1; 
net = dagnn.DagNN.loadobj(net_load) ;
OutputVer = net.getVarIndex('conv3_3x') ;
net.vars(net.getVarIndex('conv3_3x')).precious = 1 ;

net.mode = 'test';
if useGPU
   net.move('gpu');
end