Roshni_Pathak:

clinical_data = torch.stack(clinical_data,dim=1).squeeze(0) #(torch.arange(clinical_data), dim=1)


It seems like in this line you are providing a generator clinical_data to the stack function. Make sure your input to this function is tuple or list