开发者
下载
[object Object][object Object][object Object]
  • Ascend 950PR/Ascend 950DT:支持
[object Object][object Object]
  • Atlas A3 训练系列产品/Atlas A3 推理系列产品:支持
[object Object][object Object]
  • Atlas A2 训练系列产品/Atlas A2 推理系列产品:支持
[object Object][object Object]

逐元素计算input和other的平方和的平方根(即直角三角形的斜边长)。计算公式如下:

resi=inputi2+otheri2res_i = \sqrt{input_i^2 + other_i^2} [object Object]
[object Object]
[object Object][object Object]undefined
[object Object]

返回输出Tensor,Tensor的数据类型和input、other相同,Shape为input和other广播后大小。

[object Object]
  1. input和other都为Tensor时,数据类型应该相同。
  2. 对于BF16和FP16类型,内部计算可能会提升精度以避免中间溢出。
  3. Tensor类型输入不支持[object Object]格式。
[object Object][object Object]

说明:调用该operation接口前,应通过set_vec_tile_shapes设置TileShape。

TileShape维度应和输出一致。

示例1:输入input shape为[m, n],输出为[m, n], TileShape设置为[m1, n1],则m1, n1分别用于切分m, n轴。

[object Object]
[object Object]
[object Object]

结果示例如下:

[object Object]