i’m trying to extract features and got this error from this line

feats = model(samples).copy()
features = torch.zeros(len(data_loader.dataset), feats.shape[-1])

i read that i should convert it to numpy but couldn’t write it well
the first error was

AttributeError: ‘list’ object has no attribute ‘clone’

so i changed it to copy but got current error in the title of the post