| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Co-authored-by: Ding_Jing<dingjing19@huawei.com> # message auto-generated for no-merge-commit merge: !3778 merge feat/migrate-conj-conjugate-transpose into master feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Created-by: Ding_Jing Commit-by: Ding_Jing Merged-by: cann-robot Description: ## 描述 从 canndev 迁移两个 AICPU 算子到 ops-math,并将 infershape 由 rt1 适配为 rt2: - Conj → math/conj/(逐元素复数共轭) - ConjugateTranspose → conversion/conjugate_transpose/(按 perm 转置 + 共轭) 每算子交付:op_graph(proto + InferDataType)、op_host(infershape rt2)、op_kernel_aicpu(kernel + opdef)、examples(图模式)、tests/ut(infershape + kernel)、README;docs/zh/op_list.md 补充条目。 infershape 适配要点: - Conj 为 element-wise,复用 Ops::Base::InferShape4Elewise。 - ConjugateTranspose 按 perm 常量重排 + InputsDataDependency({perm});perm 校验为非负 [0, rank-1],与本算子 AICPU kernel、canndev rt1、TF 语义一致(format 由框架接管,rt2 infershape 不处理)。 ## 关联的Issue #2135 https://gitcode.com/cann/ops-math/issues/2135 ## 测试 Ascend 910B 真机验证全部通过: - op_host(infershape)UT:8/8 - AICPU kernel UT:11/11(Conj 6 + ConjugateTranspose 5) - 打包 .run + 安装:SUCCESS;strings 自检两算子符号在 libmath_aicpu_kernels.so - 图模式 example:Conj、ConjugateTranspose 结果均正确,日志确认走 AICPU custom scheduler ## 文档更新 - 新增 math/conj/README.md、conversion/conjugate_transpose/README.md - 更新 docs/zh/op_list.md(新增两算子条目) ## 类型标签 - [x] 新特性 See merge request: cann/ops-math!3778 | 1 个月前 | |
feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Co-authored-by: Ding_Jing<dingjing19@huawei.com> # message auto-generated for no-merge-commit merge: !3778 merge feat/migrate-conj-conjugate-transpose into master feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Created-by: Ding_Jing Commit-by: Ding_Jing Merged-by: cann-robot Description: ## 描述 从 canndev 迁移两个 AICPU 算子到 ops-math,并将 infershape 由 rt1 适配为 rt2: - Conj → math/conj/(逐元素复数共轭) - ConjugateTranspose → conversion/conjugate_transpose/(按 perm 转置 + 共轭) 每算子交付:op_graph(proto + InferDataType)、op_host(infershape rt2)、op_kernel_aicpu(kernel + opdef)、examples(图模式)、tests/ut(infershape + kernel)、README;docs/zh/op_list.md 补充条目。 infershape 适配要点: - Conj 为 element-wise,复用 Ops::Base::InferShape4Elewise。 - ConjugateTranspose 按 perm 常量重排 + InputsDataDependency({perm});perm 校验为非负 [0, rank-1],与本算子 AICPU kernel、canndev rt1、TF 语义一致(format 由框架接管,rt2 infershape 不处理)。 ## 关联的Issue #2135 https://gitcode.com/cann/ops-math/issues/2135 ## 测试 Ascend 910B 真机验证全部通过: - op_host(infershape)UT:8/8 - AICPU kernel UT:11/11(Conj 6 + ConjugateTranspose 5) - 打包 .run + 安装:SUCCESS;strings 自检两算子符号在 libmath_aicpu_kernels.so - 图模式 example:Conj、ConjugateTranspose 结果均正确,日志确认走 AICPU custom scheduler ## 文档更新 - 新增 math/conj/README.md、conversion/conjugate_transpose/README.md - 更新 docs/zh/op_list.md(新增两算子条目) ## 类型标签 - [x] 新特性 See merge request: cann/ops-math!3778 | 1 个月前 | |
feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Co-authored-by: Ding_Jing<dingjing19@huawei.com> # message auto-generated for no-merge-commit merge: !3778 merge feat/migrate-conj-conjugate-transpose into master feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Created-by: Ding_Jing Commit-by: Ding_Jing Merged-by: cann-robot Description: ## 描述 从 canndev 迁移两个 AICPU 算子到 ops-math,并将 infershape 由 rt1 适配为 rt2: - Conj → math/conj/(逐元素复数共轭) - ConjugateTranspose → conversion/conjugate_transpose/(按 perm 转置 + 共轭) 每算子交付:op_graph(proto + InferDataType)、op_host(infershape rt2)、op_kernel_aicpu(kernel + opdef)、examples(图模式)、tests/ut(infershape + kernel)、README;docs/zh/op_list.md 补充条目。 infershape 适配要点: - Conj 为 element-wise,复用 Ops::Base::InferShape4Elewise。 - ConjugateTranspose 按 perm 常量重排 + InputsDataDependency({perm});perm 校验为非负 [0, rank-1],与本算子 AICPU kernel、canndev rt1、TF 语义一致(format 由框架接管,rt2 infershape 不处理)。 ## 关联的Issue #2135 https://gitcode.com/cann/ops-math/issues/2135 ## 测试 Ascend 910B 真机验证全部通过: - op_host(infershape)UT:8/8 - AICPU kernel UT:11/11(Conj 6 + ConjugateTranspose 5) - 打包 .run + 安装:SUCCESS;strings 自检两算子符号在 libmath_aicpu_kernels.so - 图模式 example:Conj、ConjugateTranspose 结果均正确,日志确认走 AICPU custom scheduler ## 文档更新 - 新增 math/conj/README.md、conversion/conjugate_transpose/README.md - 更新 docs/zh/op_list.md(新增两算子条目) ## 类型标签 - [x] 新特性 See merge request: cann/ops-math!3778 | 1 个月前 | |
feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Co-authored-by: Ding_Jing<dingjing19@huawei.com> # message auto-generated for no-merge-commit merge: !3778 merge feat/migrate-conj-conjugate-transpose into master feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Created-by: Ding_Jing Commit-by: Ding_Jing Merged-by: cann-robot Description: ## 描述 从 canndev 迁移两个 AICPU 算子到 ops-math,并将 infershape 由 rt1 适配为 rt2: - Conj → math/conj/(逐元素复数共轭) - ConjugateTranspose → conversion/conjugate_transpose/(按 perm 转置 + 共轭) 每算子交付:op_graph(proto + InferDataType)、op_host(infershape rt2)、op_kernel_aicpu(kernel + opdef)、examples(图模式)、tests/ut(infershape + kernel)、README;docs/zh/op_list.md 补充条目。 infershape 适配要点: - Conj 为 element-wise,复用 Ops::Base::InferShape4Elewise。 - ConjugateTranspose 按 perm 常量重排 + InputsDataDependency({perm});perm 校验为非负 [0, rank-1],与本算子 AICPU kernel、canndev rt1、TF 语义一致(format 由框架接管,rt2 infershape 不处理)。 ## 关联的Issue #2135 https://gitcode.com/cann/ops-math/issues/2135 ## 测试 Ascend 910B 真机验证全部通过: - op_host(infershape)UT:8/8 - AICPU kernel UT:11/11(Conj 6 + ConjugateTranspose 5) - 打包 .run + 安装:SUCCESS;strings 自检两算子符号在 libmath_aicpu_kernels.so - 图模式 example:Conj、ConjugateTranspose 结果均正确,日志确认走 AICPU custom scheduler ## 文档更新 - 新增 math/conj/README.md、conversion/conjugate_transpose/README.md - 更新 docs/zh/op_list.md(新增两算子条目) ## 类型标签 - [x] 新特性 See merge request: cann/ops-math!3778 | 1 个月前 | |
feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Co-authored-by: Ding_Jing<dingjing19@huawei.com> # message auto-generated for no-merge-commit merge: !3778 merge feat/migrate-conj-conjugate-transpose into master feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Created-by: Ding_Jing Commit-by: Ding_Jing Merged-by: cann-robot Description: ## 描述 从 canndev 迁移两个 AICPU 算子到 ops-math,并将 infershape 由 rt1 适配为 rt2: - Conj → math/conj/(逐元素复数共轭) - ConjugateTranspose → conversion/conjugate_transpose/(按 perm 转置 + 共轭) 每算子交付:op_graph(proto + InferDataType)、op_host(infershape rt2)、op_kernel_aicpu(kernel + opdef)、examples(图模式)、tests/ut(infershape + kernel)、README;docs/zh/op_list.md 补充条目。 infershape 适配要点: - Conj 为 element-wise,复用 Ops::Base::InferShape4Elewise。 - ConjugateTranspose 按 perm 常量重排 + InputsDataDependency({perm});perm 校验为非负 [0, rank-1],与本算子 AICPU kernel、canndev rt1、TF 语义一致(format 由框架接管,rt2 infershape 不处理)。 ## 关联的Issue #2135 https://gitcode.com/cann/ops-math/issues/2135 ## 测试 Ascend 910B 真机验证全部通过: - op_host(infershape)UT:8/8 - AICPU kernel UT:11/11(Conj 6 + ConjugateTranspose 5) - 打包 .run + 安装:SUCCESS;strings 自检两算子符号在 libmath_aicpu_kernels.so - 图模式 example:Conj、ConjugateTranspose 结果均正确,日志确认走 AICPU custom scheduler ## 文档更新 - 新增 math/conj/README.md、conversion/conjugate_transpose/README.md - 更新 docs/zh/op_list.md(新增两算子条目) ## 类型标签 - [x] 新特性 See merge request: cann/ops-math!3778 | 1 个月前 | |
feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Co-authored-by: Ding_Jing<dingjing19@huawei.com> # message auto-generated for no-merge-commit merge: !3778 merge feat/migrate-conj-conjugate-transpose into master feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Created-by: Ding_Jing Commit-by: Ding_Jing Merged-by: cann-robot Description: ## 描述 从 canndev 迁移两个 AICPU 算子到 ops-math,并将 infershape 由 rt1 适配为 rt2: - Conj → math/conj/(逐元素复数共轭) - ConjugateTranspose → conversion/conjugate_transpose/(按 perm 转置 + 共轭) 每算子交付:op_graph(proto + InferDataType)、op_host(infershape rt2)、op_kernel_aicpu(kernel + opdef)、examples(图模式)、tests/ut(infershape + kernel)、README;docs/zh/op_list.md 补充条目。 infershape 适配要点: - Conj 为 element-wise,复用 Ops::Base::InferShape4Elewise。 - ConjugateTranspose 按 perm 常量重排 + InputsDataDependency({perm});perm 校验为非负 [0, rank-1],与本算子 AICPU kernel、canndev rt1、TF 语义一致(format 由框架接管,rt2 infershape 不处理)。 ## 关联的Issue #2135 https://gitcode.com/cann/ops-math/issues/2135 ## 测试 Ascend 910B 真机验证全部通过: - op_host(infershape)UT:8/8 - AICPU kernel UT:11/11(Conj 6 + ConjugateTranspose 5) - 打包 .run + 安装:SUCCESS;strings 自检两算子符号在 libmath_aicpu_kernels.so - 图模式 example:Conj、ConjugateTranspose 结果均正确,日志确认走 AICPU custom scheduler ## 文档更新 - 新增 math/conj/README.md、conversion/conjugate_transpose/README.md - 更新 docs/zh/op_list.md(新增两算子条目) ## 类型标签 - [x] 新特性 See merge request: cann/ops-math!3778 | 1 个月前 | |
feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Co-authored-by: Ding_Jing<dingjing19@huawei.com> # message auto-generated for no-merge-commit merge: !3778 merge feat/migrate-conj-conjugate-transpose into master feat: 迁移 Conj 与 ConjugateTranspose AICPU 算子(含 infershape rt1→rt2) Created-by: Ding_Jing Commit-by: Ding_Jing Merged-by: cann-robot Description: ## 描述 从 canndev 迁移两个 AICPU 算子到 ops-math,并将 infershape 由 rt1 适配为 rt2: - Conj → math/conj/(逐元素复数共轭) - ConjugateTranspose → conversion/conjugate_transpose/(按 perm 转置 + 共轭) 每算子交付:op_graph(proto + InferDataType)、op_host(infershape rt2)、op_kernel_aicpu(kernel + opdef)、examples(图模式)、tests/ut(infershape + kernel)、README;docs/zh/op_list.md 补充条目。 infershape 适配要点: - Conj 为 element-wise,复用 Ops::Base::InferShape4Elewise。 - ConjugateTranspose 按 perm 常量重排 + InputsDataDependency({perm});perm 校验为非负 [0, rank-1],与本算子 AICPU kernel、canndev rt1、TF 语义一致(format 由框架接管,rt2 infershape 不处理)。 ## 关联的Issue #2135 https://gitcode.com/cann/ops-math/issues/2135 ## 测试 Ascend 910B 真机验证全部通过: - op_host(infershape)UT:8/8 - AICPU kernel UT:11/11(Conj 6 + ConjugateTranspose 5) - 打包 .run + 安装:SUCCESS;strings 自检两算子符号在 libmath_aicpu_kernels.so - 图模式 example:Conj、ConjugateTranspose 结果均正确,日志确认走 AICPU custom scheduler ## 文档更新 - 新增 math/conj/README.md、conversion/conjugate_transpose/README.md - 更新 docs/zh/op_list.md(新增两算子条目) ## 类型标签 - [x] 新特性 See merge request: cann/ops-math!3778 | 1 个月前 |
Conj
产品支持情况
| 产品 | 是否支持 |
|---|---|
| Ascend 950PR/Ascend 950DT | √ |
| Atlas A3 训练系列产品/Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品/Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | × |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |
功能说明
-
算子功能:返回复数张量的共轭。对输入的每个复数元素取共轭(实部不变、虚部取反)。
-
计算公式:output = conj(input),即output = a - bi,其中input = a + bi
参数说明
| 参数名 | 输入/输出/属性 | 描述 | 数据类型 | 数据格式 |
|---|---|---|---|---|
| input | 输入 | 输入复数张量。 | COMPLEX64、COMPLEX128 | ND |
| output | 输出 | 输入张量的共轭,shape与input一致。 | COMPLEX64、COMPLEX128 | ND |
约束说明
- 无。
调用说明
| 调用方式 | 样例代码 | 说明 |
|---|---|---|
| 图模式调用 | test_geir_conj | 通过算子IR构图方式调用conj算子。 |