Closed
[Task|任务跟踪]: auto_mix_partition 配置收敛为 pypto.experimental 入口并仅保留 0/1 #3431
dbjAdd on  Sep 22Closed at  Sep 24
dbj
dbjCollaborators
Sep 22 Create

任务描述

将 auto_mix_partition 的配置方式从 pypto.set_pass_options 顶层参数(off/default/high 字符串档位 + N>100 自定义合图 op 数上限)收敛为 pypto.experimental.auto_mix_partition(0/1) 函数入口,仅保留 0(关闭)与 1(开启)两种取值,默认值由 default 档(编码 2)改为 0(关闭)。

该配置控制 ReduceCopyMerge Pass 的自动 CV Mix 合图行为:

  • 0:不进行自动 CV Mix 合图
  • 1:进行自动 CV Mix 合图,合并后子图 Cube op 数 ≤ 2000 且 Vector op 数 ≤ 2240

C++ 侧 ReduceCopyMerge 的档位映射逻辑(MapAutoMixPartitionToLimits)保持不变。

任务目标

  1. 新增 pypto.experimental.auto_mix_partition(value) 配置入口,仅接受 0/1,其余取值(字符串档位、bool、其他数值)抛 ValueError。
  2. 从 pypto.set_pass_options / pypto.get_pass_options 移除 auto_mix_partition 参数与回读键。
  3. tile_fwk_config.json 与 tile_fwk_config_schema.json 的默认值收敛为 0,schema 取值收窄为 0~1,label 描述同步更新。
  4. 同步更新接口 UT(test_config_options.py)与 API 文档(pypto-set_pass_options.md)。
likedislike
dbjdbjCollaborators
Sep 22 Associated pull request
dbjdbjCollaborators
Sep 23 Associated pull request
dbjdbjCollaborators
Sep 23 Associated pull request
袁野袁野Collaborators
Sep 23 Added label: Passes
KaiqiJinKaiqiJinCollaborators
Sep 24 changed custom state from 进行中 to 已完成
KaiqiJinKaiqiJinCollaborators
Sep 24 Close issue