External Cannbot Ops Torch Ascendc Op Extension

将已有 Ascend C <<<>>> 直调工程通过 TORCH_LIBRARY 对接到 PyTorch,实现 torch.ops.npu.xxx() 调用。触发:用户提到 TORCH_LIBRARY、.asc 对接 PyTorch、Python 调用 Ascend C 算子、注册到 torch、算子接入 PyTorch dispatch、PyTorch binding、torch extension、或想在 Python 中用 torch.ops.xxx() 调用已有 Ascend C kernel。不适用:从零建工程(用 ascendc-direct-invoke-template);注册调用转直调(用 ascendc-registry-invoke-to-direct-invoke)。

ascend-ai-coding Updated

File contents

ascend-ai-coding/awesome-ascend-skills/tree/main/external/cannbot/ops/torch-ascendc-op-extension commit 0aad6cd730

Frequently asked questions

npx skillmds@latest add ascend-ai-coding/external-cannbot-ops-torch-ascendc-op-extension