首页 > 技术文章 > PyTorch:函数加下划线代表的意思

sakuraie 2020-07-15 15:56 原文

PyTorch中,一般函数加下划线代表直接在原来的 Tensor 上修改,即in-place操作

推荐阅读