SGD(net.parameters(), lr=0.01, weight_decay=1e-4). 这里我们定义好了模型和优化器,可以通过 optimizer.param_groups 来得到所有的参数组和其对应的属性,参数组是 ...
確定! 回上一頁