I have tried to convert my inputs to a pytorch tensor as follows
model= model.train(False)

    for  data in enumerate(test_loader):
       
        x, y_true = data 

        if torch.cuda.is_available():
            x, y_true = x.cuda(), y_true.cuda()
        x=torch.from_numpy(np.asarray(x))
        out = model(x)
        out = F.softmax(out, dim=1)
        loss = criterion(out, y_true)

I have now gotten another error. Please, any idea on how to solve it?
RuntimeError: Expected 4-dimensional input for 4-dimensional weight 64 9 7 7, but got 0-dimensional input of size [] instead