文件最后提交记录最后更新时间
not_equal算子Ascend C实现 Co-authored-by: lyt_claire<luyitong1@huawei.com> # message auto-generated for no-merge-commit merge: !2598 merge not_equal_v2 into master not_equal算子Ascend C实现 Created-by: tieyutong Commit-by: lyt_claire Merged-by: cann-robot Description: 新建路径experimental/math/not_equal_v2,完成not_equal算子Ascend C迁移任务。 See merge request: cann/ops-math!259821 天前
not_equal算子Ascend C实现 Co-authored-by: lyt_claire<luyitong1@huawei.com> # message auto-generated for no-merge-commit merge: !2598 merge not_equal_v2 into master not_equal算子Ascend C实现 Created-by: tieyutong Commit-by: lyt_claire Merged-by: cann-robot Description: 新建路径experimental/math/not_equal_v2,完成not_equal算子Ascend C迁移任务。 See merge request: cann/ops-math!259821 天前
not_equal算子Ascend C实现 Co-authored-by: lyt_claire<luyitong1@huawei.com> # message auto-generated for no-merge-commit merge: !2598 merge not_equal_v2 into master not_equal算子Ascend C实现 Created-by: tieyutong Commit-by: lyt_claire Merged-by: cann-robot Description: 新建路径experimental/math/not_equal_v2,完成not_equal算子Ascend C迁移任务。 See merge request: cann/ops-math!259821 天前
refactor: 清理 experimental 目录 tiling 文件中多余的头文件引用 Co-authored-by: songkai111<songkai16@huawei.com> # message auto-generated for no-merge-commit merge: !2956 merge master into master refactor: 清理 experimental 目录 tiling 文件中多余的头文件引用 Created-by: songkai111 Commit-by: songkai111 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!29567 天前
not_equal算子Ascend C实现 Co-authored-by: lyt_claire<luyitong1@huawei.com> # message auto-generated for no-merge-commit merge: !2598 merge not_equal_v2 into master not_equal算子Ascend C实现 Created-by: tieyutong Commit-by: lyt_claire Merged-by: cann-robot Description: 新建路径experimental/math/not_equal_v2,完成not_equal算子Ascend C迁移任务。 See merge request: cann/ops-math!259821 天前
not_equal算子Ascend C实现 Co-authored-by: lyt_claire<luyitong1@huawei.com> # message auto-generated for no-merge-commit merge: !2598 merge not_equal_v2 into master not_equal算子Ascend C实现 Created-by: tieyutong Commit-by: lyt_claire Merged-by: cann-robot Description: 新建路径experimental/math/not_equal_v2,完成not_equal算子Ascend C迁移任务。 See merge request: cann/ops-math!259821 天前
not_equal算子Ascend C实现 Co-authored-by: lyt_claire<luyitong1@huawei.com> # message auto-generated for no-merge-commit merge: !2598 merge not_equal_v2 into master not_equal算子Ascend C实现 Created-by: tieyutong Commit-by: lyt_claire Merged-by: cann-robot Description: 新建路径experimental/math/not_equal_v2,完成not_equal算子Ascend C迁移任务。 See merge request: cann/ops-math!259821 天前
not_equal算子Ascend C实现 Co-authored-by: lyt_claire<luyitong1@huawei.com> # message auto-generated for no-merge-commit merge: !2598 merge not_equal_v2 into master not_equal算子Ascend C实现 Created-by: tieyutong Commit-by: lyt_claire Merged-by: cann-robot Description: 新建路径experimental/math/not_equal_v2,完成not_equal算子Ascend C迁移任务。 See merge request: cann/ops-math!259821 天前
README.md

NotEqualV2

产品支持情况

产品 是否支持
Atlas A2 训练系列产品/Atlas 800I A2 推理产品/A200I A2 Box 异构组件

功能说明

  • 算子功能:逐元素比较两个输入tensor,判断对应元素是否不相等。返回一个BOOL型tensor。

  • 计算公式:

    outi=(selfi≠otheri)out_i = (self_i \neq other_i)

参数说明

参数名 输入/输出/属性 描述 数据类型 数据格式
self 输入 待进行not_equal_v2计算的入参,公式中的selfiself_i FLOAT16,FLOAT,INT32,INT8,UINT8,BOOL,BFLOAT16 ND
other 输入 待进行not_equal_v2计算的入参,公式中的otheriother_i FLOAT16,FLOAT,INT32,INT8,UINT8,BOOL,BFLOAT16 ND
out 输出 待进行not_equal_v2计算的出参,公式中的outiout_i BOOL ND

约束说明

  • aclnnNeTensoraclnnInplaceNeTensoraclnnLogicalXor 动态执行路径支持 broadcast,selfother 需满足广播规则,out 的 shape 需与广播后的 shape 一致。
  • aclnnInplaceNeTensor 需额外满足广播后的 shape 与 selfRef 的 shape 一致。
  • 当前对外文档所列输入数据类型范围内,不支持 int64

调用说明

调用方式 调用样例 说明
aclnn调用 test_aclnn_logical_xor 通过aclnnLogicalXor接口方式调用NotEqualV2算子。
aclnn调用 test_aclnn_ne_scalar 通过aclnnNeScalar/aclnnInplaceNeScalar接口方式调用NotEqualV2算子。
aclnn调用 test_aclnn_ne_tensor 通过aclnnNeTensor/aclnnInplaceNeTensor接口方式调用NotEqualV2算子。

贡献说明

贡献者 贡献方 贡献算子 贡献时间 贡献内容
NotEqualV2 个人开发者 NotEqualV2 2026/2/13 NotEqualV2算子适配开源仓