PaConvert
PaConvert copied to clipboard
【Hackathon 7th No.38】为 Paddle 代码转换工具新增 API 转换规则(第5组)
PR Docs
https://github.com/PaddlePaddle/docs/pull/6885
PR APIs
torch.isposinf
torch.isneginf
torch.isreal
torch.isin
torch.Tensor.isposinf
torch.Tensor.isneginf
torch.Tensor.isreal
torch.Tensor.scatter_reduce
torch.scatter_reduce
torch.positive
torch.Tensor.positive
torch.concatenate
torch.can_cast
torch.float_power
torch.block_diag
torch.cartesian_prod
ps: 如果有朋友用 vscode 修改 paconvert/api_mapping.json 和 paconvert/api_alias_mapping.json,并用 pre-commit commit 时,出现 json 文件diff 全覆盖的情况,可能 是 pre-commit 的问题
CI-codestyle 里显示没用pre commit导致报错,but我用pre commit 的话会导致json文件全覆盖(p1),例子p2中可以看到diff显示全覆盖,但实际上只有一行进行了更改
@inaomIIsfarell CI未通过且出现冲突,需要修改