getattr()函数讲解

 

 如果我不想用SGD了怎么办?

 

getattr(torch.optim, config['optimizer'])
posted @ 2022-03-20 21:37  bH1pJ  阅读(79)  评论(0编辑  收藏  举报