How should I solve this problem? Thanks in advance.
A good start for solving such issue is reading and trying to understand the compiler error messages. Often they are helpful. "It fails" isn't a good enough description.
Hello @pzhu.1 ,
Could you please share more details on your issue (error message with screenshot), your setting project, and code generator.
You can follow the Getting started with X-CUBE-AI Expansion Package for Artificial Intelligence (AI) - User manual.