TypeError: torch.max received an invalid combination of arguments - got (numpy.ndarray, dim=int), but expected one of:
** * (torch.FloatTensor source)**
** * (torch.FloatTensor source, torch.FloatTensor other)**
** didn’t match because some of the keywords were incorrect: dim**
** * (torch.FloatTensor source, int dim)**
** * (torch.FloatTensor source, int dim, bool keepdim)**
I then searched and found the below post. However when I tried both accuracy_np method and
I get the below error Attribute Error: ‘bool’ object has no attribute ‘mean’
TTA used to return the average of the augmentations as a prediction. Now it returns the set so you can do with them as you please. Change it like this Planet Classification Challenge
@digitalspecialists that doesnt help. I alreasdy tried what is mentioned and I get the same error as highlighted in above
TypeError: torch.max received an invalid combination of arguments - got (numpy.ndarray, dim=int), but expected one of:
* (torch.FloatTensor source)
* (torch.FloatTensor source, torch.FloatTensor other)
didn’t match because some of the keywords were incorrect: dim
* (torch.FloatTensor source, int dim)
* (torch.FloatTensor source, int dim, bool keepdim)
@rachel@reshama@jeremy any idea what the error could and a potential solution to the same
Is it the same error, or now you get something else
TypeError: torch.max received an invalid combination of arguments - got (numpy.ndarray, dim=int), but expected one of:
** * (torch.FloatTensor source)**
** * (torch.FloatTensor source, torch.FloatTensor other)**
** didn’t match because some of the keywords were incorrect: dim**
** * (torch.FloatTensor source, int dim)**
** * (torch.FloatTensor source, int dim, bool keepdim)**