This is expected behavior based on your model_optimization_config settings.
What’s happening: The Hailo compiler intentionally modifies model graphs during optimization to ensure hardware compatibility and performance. Common modifications include:
Layer fusion/splitting for efficient execution
Pre/post-processing layer insertion (controlled by flags like insert_pre_post_layers)
Layout transformations (NHWC/NCHW alignment)
Hardware-specific operation replacements
Root cause: Your model_script with the supplied model_optimization_config is triggering these structural changes. Key config flags that affect model structure: