FilesLast commitLast update
20 days ago
3 months ago
2 months ago
9 months ago
6 days ago
7 months ago
1 month ago
6 days ago
1 month ago
12 days ago
README

IsNegInf

English | 简体中文

Product Support Status

Product Supported
Ascend 950PR&950DT products √
Atlas A3 products √
Atlas A2 products √
Atlas 200I/500 A2 inference products ×
Atlas inference products √
Atlas training products ×

Function Description

  • Operator function: determines which elements in a tensor are negative infinity, that is, -inf.

  • Computation formula:

    outi=(inputi==−inf)out_i=(input_i == -inf)

  • Examples:

    • If x=[9, 6, -inf], the result of isNegInf(x) is [False, False, True].

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input Input parameter for the determination, which is input_i in the formula. FLOAT, FLOAT16, BFLOAT16 ND
y Output Output parameter for the determination, which is out_i in the formula. BOOL ND

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_isneginf Invokes the IsNegInf operator through the aclnnIsNegInf API