已合并
turbo_quant_compress_latent csrc upgrade #8607
丛吉钰创建于 8月12日
turbo_quant_compress_latent csrc upgrade #8607
已合并
丛吉钰创建于 8月12日
丛吉钰
丛吉钰成员
8月12日

描述

turbo_quant_compress_latent csrc upgrade

关联的Issue

#4690

测试

编译并安装cann_ops_nn

文档更新

类型标签

AI/Agent生成声明

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 丛吉钰 的贡献)
丛吉钰丛吉钰成员
8月12日 创建了 pull request,commit f8b7bf33
atomgit-bot
atomgit-bot
8月12日 评论:

变更摘要

此 PR 修复了 TurboQuantCompressLatentOpBuilder 在初始化及源文件路径解析上的问题:移除了父类构造器中多余的 "quant" 命名空间参数,并将 sources() 方法中的硬编码路径改为通过 self.resolve_source() 动态解析,使构建器能正确找到对应的 C++ 源文件。

主要改动

  • 移除父类构造器中的冗余命名空间参数: super().__init__("turbo_quant_compress_latent", "quant") 简化为 super().__init__("turbo_quant_compress_latent"),修正了 OpBuilder 子类初始化时传入多余参数的问题。
  • 将硬编码源文件路径改为动态解析: sources() 方法中 "csrc/quant/turbo_quant_compress_latent.cpp" 替换为 self.resolve_source("turbo_quant_compress_latent.cpp"),使源文件路径由构建器自动解析,避免因路径不匹配导致编译失败。
likedislike
不准确?
atomgit-bot
atomgit-bot
8月12日 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
CANN-robotCANN-robot成员
8月12日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
8月12日 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
experimental ✅ 陈琦, 范其瑞 (2/2) ✅ 陈琦, 范其瑞 (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

cong-jiyu, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
丛吉钰丛吉钰成员
8月12日 修改了pull request 的描述
CANN-robotCANN-robot成员
8月12日 将zengjuan,sxb154714,cheng_gao,chenfeng61,chaotang233,kevin_huang1234,FelixTang7,crystalhu,yu-xinjie62,yangyang016,fanqirui,renruhai,su-yueming,zhajianqing123,chenqi317,liu-wei,lileizheng,LinPX,fullt,wang-xing001,liubo75,LiuZonggu,tangweiwei2,wangzitao_leo,xubinglin,liujie12345678,pingchuantang,Chen_HaoWen,wangcimeng,huafeng793,liuyang_806,liuchuangdev,shenchengzong,yuxin5设为评审人
CANN-robotCANN-robot成员
8月12日 将zengjuan,sxb154714,cheng_gao,chenfeng61,chaotang233,kevin_huang1234,FelixTang7,crystalhu,yu-xinjie62,yangyang016,fanqirui,renruhai,su-yueming,zhajianqing123,chenqi317,liu-wei,lileizheng,LinPX,fullt,wang-xing001,liubo75,LiuZonggu,tangweiwei2,wangzitao_leo,xubinglin,liujie12345678,pingchuantang,Chen_HaoWen,wangcimeng,huafeng793,liuyang_806,liuchuangdev,shenchengzong,yuxin5设为审查人
丛吉钰
丛吉钰成员
8月12日 评论:

compile

likedislike
丛吉钰丛吉钰成员
8月12日 预合并成功(commit_id: 2663ace58291f8976103bb654c61e96d0c577c0e)
CANN-robotCANN-robot成员
8月12日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
8月12日 评论:

流水线任务触发成功
任务链接 [1466f2076da042e0932db52a8e62c62d][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_950 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_950 ✅ SUCCESS >>>>> >>>>>
Compile_Pre ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
Compile_classify ✅ SUCCESS >>>>>
Compile_Ascend_X86_mobile_station_9030_ubuntu24 ✅ SUCCESS >>>>> >>>>>
UT_Test_ophost ✅ SUCCESS
UT_Test_opapi ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
UT_Test_opgraph ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>
UT_Test_harmony-infer-chs-nn ✅ SUCCESS
UT_Test_harmony-infer-chs-nn-1 ✅ SUCCESS
UT_Test_harmony-infer-cpro-nn ✅ SUCCESS
UT_Test_report_lcov ⚠️ WARNING >>>>>

[2026-08-12 16:25:16]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
8月12日 评论:

流水线任务触发成功
任务链接 [c92e5d71d5274ceab9bf51e6b3672f89][流水线指导]

任务名称状态日志下载链接
antipoison ✅ SUCCESS >>>>>
codecheck_checkpr ✅ SUCCESS
StaticCheck_codespell ✅ SUCCESS
StaticCheck_link_validity ✅ SUCCESS
StaticCheck_resource_existence ✅ SUCCESS
StaticCheck_tag_closed ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_precommit ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>

[2026-08-12 16:10:55]    CI执行结束

likedislike
CANN-robotCANN-robot成员
8月12日 添加了label:api-check-pass
CANN-robotCANN-robot成员
8月12日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
8月12日 添加了label:ci-pipeline-passed
chenqi317成员
8月13日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
8月13日 添加了label:approved
范其瑞
范其瑞成员
8月13日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
8月13日 添加了label:lgtm
CANN-robotCANN-robot成员
8月13日 合入了pull request