Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
conv/conv3d_v2/op_host/op_tiling/conv3d_tiling_engine.cpp 中 Conv3dTilingEngine::CalcMinL1LoadSize 的 M_Mode 分支,hoAL1min 计算使用了 未命名字面量 2:
hoAL1min = m0 / shapeInfo_.wo + 2;
NA
命名的常量 + 注释明确"预留两个边界行"的语义,降低后续维护成本
将字面量 2 替换为 constexpr 具名常量并补充注释:
// An M tile may start and end inside output rows. // Reserve two boundary rows beyond m0 / Wo for a conservative AL1 output-height estimate. constexpr uint64_t AL1_OUTPUT_BOUNDARY_ROWS = 2; hoAL1min = m0 / shapeInfo_.wo + AL1_OUTPUT_BOUNDARY_ROWS;
无功能变更,计算结果不变。
Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
Backgroud(背景信息)
conv/conv3d_v2/op_host/op_tiling/conv3d_tiling_engine.cpp 中
Conv3dTilingEngine::CalcMinL1LoadSize 的 M_Mode 分支,hoAL1min 计算使用了
未命名字面量 2:
Origin(信息来源)
NA
Benefit / Necessity (价值/作用)
命名的常量 + 注释明确"预留两个边界行"的语义,降低后续维护成本
Design(设计方案)
将字面量 2 替换为 constexpr 具名常量并补充注释:
无功能变更,计算结果不变。