Error in Running code

Why I’m getting this error

Because torch.stack should be used only to stack tensors, not floats.