未验证 提交 a44d8555 编写于 作者: 卢林 提交者: GitHub

Fix a code sample bug for function 'mode()' (#53082)

上级 195d6d0f
......@@ -573,8 +573,8 @@ def mode(x, axis=-1, keepdim=False, name=None):
# (Tensor(shape=[2, 2], dtype=float32, place=CUDAPlace(0), stop_gradient=True,
# [[2., 3.],
# [5., 9.]]), Tensor(shape=[2, 2], dtype=int64, place=CUDAPlace(0), stop_gradient=True,
# [[1, 1],
# [1, 0]]))
# [[2, 2],
# [2, 1]]))
"""
if in_dygraph_mode():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册