Loss Functions 总结 损失函数分类: 回归损失函数(Regression loss), 分类损失函数(Classification loss) Regression loss functions 通常用于模型预测一个连续的值,例如一个人的年龄 Classification loss functions 通常用于模型预测一个离散的值,例如猫狗分类问题 1. L1 loss Mean Absolute Error(MAE), 也称作L1 loss computes the averag
A PyTorch Tools, best practices & Styleguide 中文版:PyTorch代码规范最佳实践和样式指南 This is not an official style guide for PyTorch. This document summarizes best practices from more than a year of experience with deep learning using the PyTorch framework. Note th
基础配置 检查 PyTorch 版本 torch.__version__ # PyTorch version torch.version.cuda # Corresponding CUDA version torch.backends.cudnn.version() # Corresponding cuDNN version torch.cuda.get_device_name(0) # GPU type 更新 PyTorch PyTo