scatter () 和scatter_() 的作用是一样的,只不过scatter() 不会直接修改原来的Tensor,而scatter_() 会PyTorch 中,一般函数加下划线代表直接在.
確定! 回上一頁