From 15ec12a06b1f3a8709014fa53c21df3f324027e7 Mon Sep 17 00:00:00 2001 From: huodagu Date: Thu, 9 Jun 2022 15:31:05 +0800 Subject: [PATCH] modify format --- docs/api/api_python/mindspore/mindspore.Tensor.rst | 1 + .../api/api_python/ops/mindspore.ops.func_deformable_conv2d.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/api_python/mindspore/mindspore.Tensor.rst b/docs/api/api_python/mindspore/mindspore.Tensor.rst index f279483c8fc..2a12fdabaf1 100644 --- a/docs/api/api_python/mindspore/mindspore.Tensor.rst +++ b/docs/api/api_python/mindspore/mindspore.Tensor.rst @@ -1063,6 +1063,7 @@ mindspore.Tensor 一维Tensor,含有与输入相同的元素。 .. py:method:: renorm(p, dim, maxnorm) + 沿维度 `dim` 重新规范Tensor的子张量,并且每个子张量的p范数不超过给定的最大范数 `maxnorm` 。 如果子张量的p范数小于 `maxnorm` ,则当前子张量不需要修改;否则该子张量需要修改为对应位置的原值除以该子张量的p范数,然后再乘上 `maxnorm` 。 diff --git a/docs/api/api_python/ops/mindspore.ops.func_deformable_conv2d.rst b/docs/api/api_python/ops/mindspore.ops.func_deformable_conv2d.rst index d1639a0481d..695d114f8c4 100644 --- a/docs/api/api_python/ops/mindspore.ops.func_deformable_conv2d.rst +++ b/docs/api/api_python/ops/mindspore.ops.func_deformable_conv2d.rst @@ -3,7 +3,7 @@ mindspore.ops.deformable_conv2d .. py:function:: mindspore.ops.deformable_conv2d(x, weight, offsets, kernel_size, strides, padding, bias=None, dilations=(1, 1, 1, 1), groups=1, deformable_groups=1, modulated=True) - 给定4D的Tensor输入`x` , `weight` 和 `offsets` ,计算一个2D的可变形卷积。可变形卷积运算可以表达如下: + 给定4D的Tensor输入 `x` , `weight` 和 `offsets` ,计算一个2D的可变形卷积。可变形卷积运算可以表达如下: 可变形卷积v1: .. math:: y(p)=\sum_{k=1}^{K}w_{k}\cdot x(p+p_{k}+\Delta{p_{k}})