FilesLast commitLast update
2 months ago
10 months ago
27 days ago
7 months ago
2 months ago
27 days ago
1 month ago
11 days ago
README

IsNan

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 nan.

  • Computation formula:

    outi=(inputi!=inputi)out_i=(input_i != input_i)

  • 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, False], [False, True]].

Parameter Description

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

Constraint Description

None

Invocation Description

Invocation Method Invocation Sample Description
Graph-mode invocation test_geir_is_nan Invokes the IsNan operator by building a graph through the operator IR.