AttributeError: 'Tensor' object has no attribute 'close'
this is the code I am working with:
I searched for a similiar error do i need to change the .close() ?
Can anyone help please?

You should remove the close() function call on the parameter tensor image in line -
image = tensor.cpu().close().detach().numpy(). This should be replaced with - image = tensor.cpu().detach().numpy()
