mindspore.ops.assign_add ========================= .. 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.func_assign_add.rst :alt: 查看源文件 .. py:function:: mindspore.ops.assign_add(variable, value) 通过加法运算更新网络参数或者tensor。 支持隐式类型转换、类型提升。 参数: - **variable** (Union[Parameter, Tensor]) - 输入的网络参数或者tensor。 - **value** (Union[Tensor, Number]) - 要和 `variable` 相加的值。 返回: Tensor