Get in Touch

Course Outline

Introduction to Custom Operator Development

  • Rationale for building 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

Using TIK for Low-Level Operator Programming

  • Understanding the TIK programming model and its supported APIs
  • Memory management techniques and tiling strategies in TIK
  • Creating, compiling, and registering a custom operation with CANN

Testing and Validating Custom Ops

  • Unit testing and integration testing of operations within the graph
  • Debugging kernel-level performance challenges
  • Visualizing op execution flow and buffer behavior

TVM-Based Scheduling and Optimization

  • Overview of TVM as a compiler for tensor operations
  • Writing a schedule for a custom op in TVM
  • TVM tuning, benchmarking, and code generation for Ascend architecture

Integration with Frameworks and Models

  • Registering custom operations for MindSpore and ONNX compatibility
  • Verifying model integrity and fallback behaviors
  • Supporting multi-operator graphs with mixed precision processing

Case Studies and Specialized Optimizations

  • Case study: High-efficiency convolution for small input shapes
  • Case study: Memory-aware attention operator optimization
  • Best practices for deploying custom ops across various devices

Summary and Next Steps

Requirements

  • Profound understanding of AI model internals and operator-level computations
  • Hands-on experience with Python and Linux development environments
  • Familiarity with neural network compilers or graph-level optimization tools

Target Audience

  • Compiler engineers focused on AI toolchains
  • Systems developers specializing in low-level AI optimization
  • Developers creating custom operations or targeting emerging AI workloads
 14 Hours

Number of participants


Price per participant

Provisional Upcoming Courses (Require 5+ participants)

Related Categories