FilesLast commitLast update
22 days ago
22 days ago
22 days ago
22 days ago
22 days ago
22 days ago
12 days ago
README

Size

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: returns the size of the input tensor, that is, an integer scalar of the number of elements in the tensor.

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input Input tensor. All types ND
dtype Attribute Optional integer, which is the output data type. The value is DT_INT32 or DT_INT64, and the default value is DT_INT32. Int -
y Output Number of elements in the input tensor, which is a scalar. INT32, INT64 ND

Constraint Description

  • The value of the dtype attribute supports only DT_INT32 and DT_INT64.

Invocation Description

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