未验证 提交 b28a1737 编写于 作者: W whs 提交者: GitHub

Merge pull request #6538 from wanghaoshuang/crop_doc

Fix crop op doc
...@@ -88,7 +88,8 @@ There are two ways to set shape: ...@@ -88,7 +88,8 @@ There are two ways to set shape:
The input should be a k-D tensor(k > 0 and k < 7). As an example: The input should be a k-D tensor(k > 0 and k < 7). As an example:
Given: Case 1:
Given
X = [[0, 1, 2, 0, 0] X = [[0, 1, 2, 0, 0]
[0, 3, 4, 0, 0] [0, 3, 4, 0, 0]
...@@ -107,6 +108,27 @@ we get: ...@@ -107,6 +108,27 @@ we get:
Out = [[1, 2], Out = [[1, 2],
[3, 4]]. [3, 4]].
Case 2:
Given
X = [[0, 1, 2, 5, 0]
[0, 3, 4, 6, 0]
[0, 0, 0, 0, 0]],
and
offsets = [0, 1],
and
Y = [[0, 0, 0]
[0, 0, 0]],
we get:
Out = [[1, 2, 5],
[3, 4, 6]].
)DOC"); )DOC");
} }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册