Pass the data as model1(X[0]) into your model.
Although you are only dealing with a data tensor (without a target tensor), data will be a list object.
Unfortunately, dropping the missing target via for data, _ in trainset won’t work, and I think this might be due to the implementation of TensorDataset.
If you use this custom implementation:
class MyDataset(Dataset):
    def __init__(self, data):
        self.data = data
        
    def __getitem__(self, index):
        x = self.data[index]
        return x
    
    def __len__(self):
        return len(self.data)

train_ds = MyDataset(torch.from_numpy(data_np).float().view(-1, 11))

your training loop will work as expected.