Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
在多仓组合编译或头文件交叉包含场景下,同一算子原型头文件可能被同一翻译单元多次包含, 导致 REG_OP 宏重复展开、同一算子被重复注册,引发编译/链接冲突。 目前 ops-nn 仓中 ActsULQ、AdamApplyOneAssign、FakeQuantWithMinMaxVars、 FakeQuantWithMinMaxVarsGradient、FakeQuantWithMinMaxVarsPerChannel、 FakeQuantWithMinMaxVarsPerChannelGradient 等算子原型缺少去重保护。
生态开发者发起
Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
Backgroud(背景信息)
在多仓组合编译或头文件交叉包含场景下,同一算子原型头文件可能被同一翻译单元多次包含,
导致 REG_OP 宏重复展开、同一算子被重复注册,引发编译/链接冲突。
目前 ops-nn 仓中 ActsULQ、AdamApplyOneAssign、FakeQuantWithMinMaxVars、
FakeQuantWithMinMaxVarsGradient、FakeQuantWithMinMaxVarsPerChannel、
FakeQuantWithMinMaxVarsPerChannelGradient 等算子原型缺少去重保护。
Origin(信息来源)
生态开发者发起
Benefit / Necessity (价值/作用)
Design(设计方案)