摘要: 2020.10.1 发现最新的 pytorch 已经原生支持 one-hot 操作 torch.nn.functional.one_hot()pytorch 官方文档链接 只需如下一行代码: label_one_hot = torch.nn.functional.one_hot(labels, se 阅读全文
posted @ 2020-09-16 19:19 Gelthin 阅读(4028) 评论(0) 推荐(1) 编辑