未验证 提交 492e6dd0 编写于 作者: W wangxinxin08 提交者: GitHub

modify comment of mish (#38805)

上级 7e31542c
......@@ -1200,9 +1200,8 @@ def mish(x, name=None):
import paddle
import paddle.nn.functional as F
import numpy as np
x = paddle.to_tensor(np.array([-5., 0., 5.]))
x = paddle.to_tensor([-5., 0., 5.])
out = F.mish(x) # [-0.03357624, 0., 4.99955208]
"""
if in_dygraph_mode():
......
......@@ -907,9 +907,8 @@ class Mish(Layer):
.. code-block:: python
import paddle
import numpy as np
x = paddle.to_tensor(np.array([-5., 0., 5.]))
x = paddle.to_tensor([-5., 0., 5.])
m = paddle.nn.Mish()
out = m(x) # [-0.03357624, 0., 4.99955208]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册