Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
https://gitcode.com/cann/ops-transformer/pull/12563 懒加载的修复,缺失_ensure_initialized调用,导致功能异常
参考如下改法,调用_ensure_initialized() 保证初始化 apply_rotary_pos_emb_grad_op_builder = ApplyRotaryPosEmbGradOpBuilder() apply_rotary_pos_emb_grad_op_builder._ensure_initialized()
如上
/assign @weihao18
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
https://gitcode.com/cann/ops-transformer/pull/12563
懒加载的修复,缺失_ensure_initialized调用,导致功能异常
参考如下改法,调用_ensure_initialized() 保证初始化
apply_rotary_pos_emb_grad_op_builder = ApplyRotaryPosEmbGradOpBuilder()
apply_rotary_pos_emb_grad_op_builder._ensure_initialized()
Environment Information / 环境信息 (Mandatory / 必填)
如上
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
如上
Describe the expected behavior / 预期结果 (Mandatory / 必填)
如上
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
如上
Special notes for this issue/备注 (Optional / 选填)