pypto.Tensor.index_add#
产品支持情况#
Ascend 950PR/Ascend 950DT:支持
Atlas A3 训练系列产品/Atlas A3 推理系列产品:支持
Atlas A2 训练系列产品/Atlas A2 推理系列产品:支持
函数原型#
index_add(self, dim: int, index: 'Tensor', source: 'Tensor', *, alpha: Optional[List[Union[int, float]]] = 1) -> 'Tensor'
详细说明#
请参见pypto.index_add。