FilesLast commitLast update
2 days ago
3 months ago
3 months ago
1 month ago
11 days ago
3 days ago
1 month ago
11 days ago
3 days ago
2 days ago
2 days ago
README

LogicalNot

English | 简体中文

Function Description

  • Operator function: computes the element-wise logical NOT of the input tensor. Zero is regarded as False and non-zero as True.

  • Formula:

    out[i]={1,if self[i]=00,if self[i]≠0out[i]= \begin{cases} 1, & \text{if } self[i]=0 \\ 0, & \text{if } self[i] \ne 0 \end{cases}

For API parameters, data types, and product support, see aclnnLogicalNot&aclnnInplaceLogicalNot_en.

Deliverables

Deliverable Location
aclnn API aclnn_logical_not.h, aclnn_logical_not.cpp
Ascend C implementation logical_not_apt.cpp (arch35, depends on logical_not_dag.h)
Operator prototype logical_not_proto.h
API documentation aclnnLogicalNot&aclnnInplaceLogicalNot_en.md

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_logical_not Invokes the LogicalNot operator through the aclnnLogicalNot or aclnnInplaceLogicalNot API.
Graph-mode invocation - Invokes the LogicalNot operator by building a graph through the operator IR.