square¶
- dragon.vm.tensorflow.math.- square(
 x,
 name=None
 )[source]¶
- Compute the square of input. \[\text{out} = \text{input}^{2} \]- Examples: - x = tf.constant([2, 3, 4]) print(tf.math.square(x)) # [4, 9, 16] - Parameters:
- x (dragon.Tensor) – The input tensor.
- name (str, optional) – The operation name.
 
 - Returns:
- dragon.Tensor – The output tensor. 
 
