Why i have problem when i train my model, pytorch? : im new with pytorch and ai but i have some trouble when i try to train my model.

I just create my Dataset and my Dataloader


        train_dataset = TensorDataset(tensor_train,tensor_label)
        train_dataloader = DataLoader(train_dataset,batch_size=32,shuffle=True)


And after this my criterion and optimiser

        criterion = nn.CrossEntropyLoss()

        optimiser=optim.Adam(net.parameters(),lr=0.2)



And i try to train him with 


        for epoch in range(10):
               for data in train_dataloader:
                    inputs,labels = data
                    output = net(torch.Tensor(inputs))
                    loss = criterion(output,labels.to(device))
                    optimiser.zero_grad()
                    loss.backward()
                    optimiser.step()


But i got this error


        d:\py\lib\site-packages\torch\nn\modules\module.py in <lambda>(t)
    321             Module: self
    322         """
        --> 323         return self._apply(lambda t: t.type(dst_type))
    324 
    325     def float(self):

    TypeError: dtype must be a type, str, or dtype object

I will be happy if someone find the problem, thanks.