FilesLast commitLast update
21 days ago
2 months ago
29 days ago
9 months ago
1 day ago
4 days ago
2 months ago
9 months ago
13 days ago
13 days ago
README

IsInf

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 ×
Kirin X90 processor series products √
Kirin 9030 processor series products √

Function Description

  • Operator function: determines which elements in a tensor are infinite values, that is, inf or -inf.

  • Computation formula:

    outi=(inputi==±inf)out_i=(input_i == ±inf)

  • Examples:

    • If x=[9, 6, 3], the computation result is [False, False, False].
    • If x=[[-3.14, inf], [2.7183, nan]], the computation result is [[False, True], [False, False]]. Note that integers and Booleans are both bounded.

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
out Output Output parameter for the determination, which is out_i in the formula. BOOL ND
  • Atlas training products and Atlas inference products: BFLOAT16 is not supported.
  • Kirin X90/Kirin 9030 processor series products: BFLOAT16 is not supported.

Constraint Description

None

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_is_inf Invokes the IsInf operator through the aclnnIsInf API.
Graph-mode invocation test_geir_is_inf Invokes the IsInf operator by building a graph through the operator IR.