square¶
- dragon.math.- square(
 inputs,
 **kwargs
 )[source]¶
- Compute the square of input. \[\text{out} = \text{input}^{2} \]- Examples: - x = dragon.constant([2, 3, 4]) print(dragon.math.square(x)) - Parameters:
- inputs (dragon.Tensor) – The input tensor.
 
 - Returns:
- dragon.Tensor – The output tensor. 
 
