ZHDA053 February 2026
编译正弦函数模型的典型 config.yaml 文件包含以下核心配置段:
common: # The common section can be plainly copied as it is
target_module: 'timeseries'
task_type: 'generic_timeseries_regression'
target_device: 'F28P55'
dataset:
dataset_name: Sine # Can be anything, used for directory name
enable: False # Please note the 'False'. Since model is already trained.
training:
enable: False # Please note the 'False'. Since model is already trained. model_name: 'SineModel_1e-05_160_64_Dequant' # Can be anything, used for
directory name
output_int: False # We need the model to dequantize the values after
running on NPU and return float value
compilation:
enable: True
model_path: "path//to//SineModel_1e-05_160_64_Dequant.onnx"代码 5:配置文件示例
各配置段在编译流程中承担特定作用: