Get in Touch
 Duration 14 hours

Course Outline

Foundations of Custom Operator Development

  • Rationale for building custom operators, including use cases and technical constraints
  • Analysis of CANN runtime architecture and operator integration touchpoints
  • Introduction to TBE, TIK, and TVM within the Huawei AI ecosystem

Low-Level Operator Programming with TIK

  • Exploring the TIK programming model and its supported API set
  • Managing memory allocation and tiling strategies within TIK
  • Process of creating, compiling, and registering custom operations with CANN

Testing and Validation of Custom Operations

  • Performing unit and integration testing for operations within the execution graph
  • Troubleshooting kernel-level performance bottlenecks
  • Visualizing operator execution flows and buffer dynamics

Scheduling and Optimization via TVM

  • Overview of TVM as a compiler framework for tensor operations
  • Defining schedules for custom operations using TVM
  • Executing TVM tuning, benchmarking, and code generation tailored for Ascend

Framework and Model Integration

  • Registering custom operations for use with MindSpore and ONNX
  • Ensuring model integrity and validating fallback mechanisms
  • Supporting multi-operator graphs featuring mixed precision capabilities

Case Studies and Specialized Optimization Techniques

  • Case study: Achieving high-efficiency convolution for compact input shapes
  • Case study: Optimizing memory-aware attention operators
  • Best practices for deploying custom operations across various devices

Summary and Future Directions

Requirements

  • Deep understanding of AI model architecture and operator-level computations
  • Proficiency in Python development within Linux environments
  • Solid grasp of neural network compilers or graph-level optimization techniques

Target Audience

  • Compiler engineers specializing in AI toolchains
  • Systems developers concentrated on low-level AI performance optimization
  • Developers creating custom operations or addressing unique AI workload requirements

Number of participants


Price per participant

Upcoming Courses

Related Categories