FilesLast commitLast update
13 days ago
2 months ago
2 months ago
10 months ago
6 days ago
7 months ago
1 month ago
6 days ago
1 month ago
12 days ago
README

IsPosInf

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 positive 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_isposinf Invokes the IsPosInf operator through the aclnnIsPosInf API