mindspore.ops.AssignSub ======================= .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/ops/mindspore.ops.AssignSub.rst :alt: 查看源文件 .. py:class:: mindspore.ops.AssignSub 从网络参数减去特定数值来更新网络参数。 更多细节请参考 :func:`mindspore.ops.assign_sub` 。 输入: - **variable** (Parameter) - 待更新的网络参数,shape: :math:`(N,*)` ,其中 :math:`*` 表示任何数量的附加维度。其秩应小于8。 - **value** (Union[numbers.Number, Tensor]) - 待从 `variable` 减去的值。如果类型为Tensor,则应与 `variable` 的shape相同。 输出: Tensor,shape和dtype与 `variable` 相同。