Closed
[Requirement|需求建议]: AscendC算子支持调用memset算子对输出清零 #417
ren-botaoAdd on  Sep 14Closed at  Sep 14
ren-botao
ren-botaoCollaborators
Sep 14 Create

Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.

Backgroud(背景信息)

aclnn算子调用 memset 算子对输出tensor清零,当前只支持tbe算子,在匹配算子输入参数个数时,对于tensor list是展开统计个数的。
Ascend950芯片,ascendc算子在 device ptr(folded)模式下调用 memset 做输出清零时,有tensor list动态输入场景支持二级指针,tensor list无需展开,需根据算子ir统计个数,一个tensor list算一个输入。否则allIdx 与 memset 算子 JSON 中的 argIdx_ 匹配错位。

Origin(信息来源)

现场需求

Benefit / Necessity (价值/作用)

支持AscendC算子调用memset算子对输出清零

Design(设计方案)

folded_with_desc 模式(二级指针)下:
tensorList 整 list 计 1 槽(不展开);
null list 跳过不占槽(null 判断在前);
非 folded_with_desc 维持按元素展开;
空 list、含 null 元素的 list 同样只计 1 槽;
null tensor 的 genPlaceholder 语义不变。

likedislike
ren-botaoren-botaoCollaborators
Sep 14 Added label: requirement
ren-botao
ren-botaoCollaborators
Sep 14 Comments:

/assign @ren-botao

likedislike
CANN-robotCANN-robotCollaborators
Sep 14 Assign ren-botao as responsible person
CANN-robotCANN-robotCollaborators
Sep 14 Close issue
CANN-robotCANN-robotCollaborators
Sep 14 Added label: resolved
ren-botaoren-botaoCollaborators
Sep 15 Associated pull request