FilesLast commitLast update
10 months ago
3 months ago
1 month ago
1 month ago
3 months ago
1 month ago
1 month ago
1 month ago
13 days ago
README

SquareSumV1

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: computes the sum of squares of the input tensor along the specified axes.

  • Computation formula:

y=∑i∈axisxi2y = \sum_{i\in\text{axis}}x_i^2

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input The input tensor x in the formula. FLOAT16, FLOAT, BFloat16 ND
y Output The output tensor y in the formula. FLOAT16, FLOAT, BFloat16 ND
axis Attribute A list of integers, specifying the axes along which the sum is computed. INT32_ARRAY ND
keep_dims Attribute Whether to keep the reduced dimensions in the output. The default value is false. bool ND

Constraint Description

None

Invocation Description

Invocation Method Invocation Sample Description
Graph-mode invocation test_geir_square_sum_v1.cpp Invokes the SquareSumV1 operator by building a graph through the operator IR.