pypto.scatter#
函数原型#
scatter(input: Tensor, dim: int, index: Tensor, src: Union[float, Element, Tensor], *, reduce: str = None) -> Tensor
scatter_的non-inplace版本,可参考 pypto.scatter_
scatter(input: Tensor, dim: int, index: Tensor, src: Union[float, Element, Tensor], *, reduce: str = None) -> Tensor
scatter_的non-inplace版本,可参考 pypto.scatter_