mindspore.ops.Assign ==================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.2/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/r2.2/docs/api/api_python/ops/mindspore.ops.Assign.rst :alt: 查看源文件 .. py:class:: mindspore.ops.Assign 为网络参数赋值。 更多细节请参考 :func:`mindspore.ops.assign` 。 输入: - **variable** (Parameter) - 待赋值的网络参数,shape: :math:`(N,*)` ,其中 :math:`*` 表示任何数量的附加维度。其秩应小于8。 - **value** (Tensor) - 被赋给网络参数的值,和 `variable` 有相同的shape。 输出: Tensor,shape和dtype与 `variable` 相同。