Tensor.scatter_() 是 torch.gather() 函数的方向反向操作。两个函数可以看成一对兄弟函数。 gather 用来解码one hot, scatter_ 用来编码one hot。 PyTorch 中,一般 ...
確定! 回上一頁