# Function sqrt

• Compute the square root of each element in a tensor. There is a method version of this static function: Tensor.sqrt.

$$\sqrt x : \forall x \in T$$

### Example

  const t = sm.randn([128, 128])  // equivalent calls  const a = t.sqrt()  const b = sm.sqrt(t)


### Returns

#### Parameters

• ##### tensor: Tensor

Tensor whose values will have their square root calculated

#### Returns Tensor

Generated using TypeDoc