mx.symbol.sqrt

Description

Returns element-wise square-root value of the input.

\[\textrm{sqrt}(x) = \sqrt{x}\]

Example:

 sqrt([4, 9, 16]) = [2, 3, 4]

 The storage type of ``sqrt`` output depends upon the input storage type:

- sqrt(default) = default
- sqrt(row_sparse) = row_sparse
- sqrt(csr) = csr

Usage

mx.symbol.sqrt(...)

Arguments

Argument

Description

data

NDArray-or-Symbol.

The input array.

name

string, optional.

Name of the resulting symbol.