mindspore.ops.assign_sub ======================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/ops/mindspore.ops.func_assign_sub.rst :alt: 查看源文件 .. py:function:: mindspore.ops.assign_sub(variable, value) 通过减法运算更新网络参数或者tensor。 支持隐式类型转换、类型提升。 参数: - **variable** (Union[Parameter, Tensor]) - 输入的网络参数或者tensor。 - **value** (Tensor) - 从 `variable` 减去的值。 返回: Tensor