RickyYel

Home

❯

learn

❯

PyTorch transfrom.ToTensor()

PyTorch--transfrom.ToTensor()

2025年9月24日1分钟阅读

  1. 是将输入的数据shape W,H,C ——> C,W,H
  2. 将所有数除以255,将数据归一化到 [0,1]

参考

  1. https://blog.csdn.net/qq_44523137/article/details/120490093

关系图谱

Created with Quartz v4.5.2 © 2026

  • 👨🏻‍💻GitHub
  • 💬Discord Community
  • 📧Contact
  • 🔗RSS