未验证 提交 cca5f8fa 编写于 作者: S Steffy-zxf 提交者: GitHub

fix paddle.tensor.pow api example typo in api2.0

change the  exponet_tensor  to  exponent_tensor  in the pow api 
上级 8002b2be
......@@ -178,9 +178,9 @@ def pow(input, exponent, out=None, name=None):
# y_1 is x^{2.0}
# example 2: argument exponent is Variable
exponet_tensor = fluid.layers.fill_constant([1], "float32", 3.0)
exponent_tensor = fluid.layers.fill_constant([1], "float32", 3.0)
res = fluid.data(name="output", shape=[32,32], dtype="float32")
y_2 = paddle.pow(x, exponet_tensor, out=res)
y_2 = paddle.pow(x, exponent_tensor, out=res)
# y_2 is x^{3.0}
"""
helper = LayerHelper('pow', **locals())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册