らんだむな記憶

blogというものを体験してみようか!的なー

torch.tensor() と torch.Tensor() の違い

python - What is the difference between torch.tensor and torch.Tensor? - Stack Overflow

In PyTorch torch.Tensor is the main tensor class. So all tensors are just instances of torch.Tensor.

When you call torch.Tensor() you will get an empty tensor without any data.

In contrast torch.tensor is a function which returns a tensor.

あまり直接叩くことはないのだけど、どっちかと言うと小文字のほうを使っとけばいいかな?