FilesLast commitLast update
17 days ago
2 months ago
5 days ago
9 months ago
3 days ago
1 month ago
1 month ago
3 days ago
9 days ago
9 days ago
README

IsFinite

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 finite numbers, that is, not inf, -inf, or nan.
  • Computation formula:

    yi=(xi!=±inf) and (xi!=nan)y_i=(x_i != \pm inf) \: and \: (x_i!= nan)

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input Input tensor x in the formula. FLOAT, FLOAT16, BFLOAT16 ND
y Output Output tensor y in the formula. BOOL ND
  • Atlas training 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_finite Invokes the IsFinite operator through the aclnnIsFinite API.
Graph-mode invocation test_geir_is_finite Invokes the IsFinite operator by building a graph through the operator IR.