You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mindspore.ops.Neg.rst 412 B

123456789101112131415161718192021
  1. mindspore.ops.Neg
  2. ===================
  3. .. py:class:: mindspore.ops.Neg
  4. 计算输入x的相反数并返回。
  5. .. math::
  6. out_{i} = - x_{i}
  7. **输入:**
  8. - **x** (Tensor) - Neg的输入,任意维度的Tensor,秩应小于8。其数据类型为数值型。
  9. **输出:**
  10. Tensor,shape和类型与输入相同。
  11. **异常:**
  12. - **TypeError** - `x` 不是Tensor。