Code Farmer's Home
  •  首页
  •  Programming Q&A
  •  登录
  1. 标签
  2. pythonWhy do I have to unsqueeze
  • python - Why do I have to unsqueeze the data from torch.Size([50]) to torch.Size([50, 1]) - Stack Overflow

    I was doing the PyTorch Deep Learning course from FreeCodeCamp and the doubt is:weight = 0.7bias = 0.
    pythonWhy do I have to unsqueeze the data from torchSize(50) to torchSize(501)Stack Overflow
    admin25天前
    20
CopyRight © 2025 All Rights Reserved
Processed: 0.030, SQL: 9