Attribut Error: 'torch.dtype' object has no attribute 'type'

'list' object has no attribute 'numpy'

You cannot call .numpy() on a list and would need to transform the list to a tensor first.