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.
revert-22710-feature/integrated_ps_api
wawltor 5 years ago committed by GitHub
parent 3715379c31
commit 1daa66559f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save