Script.square

Contents

Script.square

Script.square(x, *, out=None)

Compute the element-wise square (x^2).

Parameters:
Returns:

ret – Tensor with the same shape and dtype as x.

Return type:

RegisterTensor

Notes

  • Thread group: Can be executed by any sized thread group.