Thank you for sending your enquiry! One of our team members will contact you shortly.
Thank you for sending your booking! One of our team members will contact you shortly.
Duration 14 hours
Course Outline
Introduction to Developing Custom Operators
- The rationale for creating custom operators: use cases and constraints.
- Structure of the CANN runtime and key operator integration points.
- Overview of TBE, TIK, and TVM within the Huawei AI ecosystem.
Utilizing TIK for Low-Level Operator Programming
- Exploring the TIK programming model and its supported APIs.
- Managing memory and implementing tiling strategies in TIK.
- Creating, compiling, and registering custom operators with CANN.
Testing and Validating Custom Operations
- Conducting unit and integration testing for operators within the graph.
- Troubleshooting kernel-level performance bottlenecks.
- Visualizing operator execution flows and buffer behaviors.
Scheduling and Optimization via TVM
- Overview of TVM as a compiler for tensor operations.
- Crafting schedules for custom operators using TVM.
- Executing TVM tuning, benchmarking, and code generation for Ascend.
Integration with Frameworks and Models
- Registering custom operators for MindSpore and ONNX frameworks.
- Ensuring model integrity and managing fallback behaviors.
- Supporting multi-operator graphs with mixed-precision capabilities.
Case Studies and Advanced Optimizations
- Case study: Optimizing high-efficiency convolution for small input shapes.
- Case study: Memory-conscious optimization of attention operators.
- Best practices for deploying custom operators across various devices.
Summary and Future Directions
Requirements
- Profound understanding of AI model architecture and operator-level computations.
- Practical experience with Python and Linux development environments.
- Familiarity with neural network compilers or graph-level optimization tools.
Target Audience
- Compiler engineers specializing in AI toolchains.
- Systems developers concentrating on low-level AI performance optimization.
- Developers creating custom operations or addressing novel AI workloads.