我们可以使用函数net.parameters()来得到模型所有的参数。 params = list(net.parameters()) print(len(params)) # 10 print(params[0].size()) # ...
確定! 回上一頁