I declared net_input
as a global variable but still I am getting NameError: name 'net_input' is not defined
global net_input
noise = net_input.detach().clone()
Error line is:
net_input_saved = net_input.detach().clone()
Error
NameError: name 'net_input' is not defined