I’m very sorry (In previous reply I writed error that arised after some additional code) Error is This: “AttributeError: ‘list’ object has no attribute 'size”. And simple code that write for examination:
My code:
my_x = [torch.rand(2,2),torch.rand(2,2)] # list of tensors
my_y = [torch.rand(1), torch.rand(1)] # list of targets
my_dataset = TensorDataset(my_x,my_y).
I apologize if my questions are childish. Thanks a lot.