SuperAPI AI Directory

ov-write-transformations

Coding & development

View repository

Updated 10-16 09:49

About this skill

  1. Read src/common/transformations/docs/writing_transformations.md — it covers where transformations live, choosing the pass type, anatomy of a MatcherPass, pattern matching and predicates, writing the callback, modifying the graph, documenting the pass, and what NOT to do.
  2. Try to find an existing transformation that can be extended to cover the new pattern.
  3. Write or modify the pass following the patterns in that guide.
  4. Add tests using the ov-transformation-tests skill, then build and run them to ensure the pass compiles and behaves as expected.