未验证 提交 1daa6655 编写于 作者: W wawltor 提交者: GitHub

Fix the elementwise_min API BUG, use the elementwise_min replace elementwise_max. (#22880)

In elementwise_min api doc has the error, all the api just use the elementwise_max op, we just correct the doc.
上级 3715379c
......@@ -10800,7 +10800,7 @@ Examples:
x = fluid.data(name="x", shape=[3], dtype='float32')
y = fluid.data(name="y", shape=[3], dtype='float32')
z = fluid.layers.elementwise_max(x, y)
z = fluid.layers.elementwise_min(x, y)
place = fluid.CPUPlace()
exe = fluid.Executor(place)
......@@ -10822,7 +10822,7 @@ Examples:
x = fluid.data(name="x", shape=[2,3,4,5], dtype='float32')
y = fluid.data(name="y", shape=[3,4], dtype='float32')
z = fluid.layers.elementwise_max(x, y, axis=1)
z = fluid.layers.elementwise_min(x, y, axis=1)
place = fluid.CPUPlace()
exe = fluid.Executor(place)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册