[object Object][object Object]

The C++ extensions plugin maps custom operators to Ascend AI Processors, allowing PyTorch developers to seamlessly access the NPU operator library. Based on the native custom operator extension capabilities provided by PyTorch, developers can compile, install, and execute the custom operator wheel package. This chapter describes how to develop and adapt custom operators on Ascend NPUs using C++ extensions. For details about the official PyTorch C++ extensions feature, see .

[object Object]

This directory contains all example projects for building custom operator libraries by using C++ extensions.

[object Object]
[object Object]

Six adaptation example projects are provided. You can choose the appropriate adaptation method as needed.

[object Object]undefined
[object Object]