Skip to content

Commit

Permalink
modify doc for bilinear_tensor_product, test=develop (#27613)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghuancoder committed Oct 9, 2020
1 parent bcc3472 commit 6076d0a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/paddle/fluid/layers/nn.py
Expand Up @@ -13263,10 +13263,11 @@ def bilinear_tensor_product(x,
Examples:
.. code-block:: python

import paddle.fluid as fluid
layer1 = fluid.data("t1", shape=[-1, 5], dtype="float32")
layer2 = fluid.data("t2", shape=[-1, 4], dtype="float32")
tensor = fluid.layers.bilinear_tensor_product(x=layer1, y=layer2, size=1000)
import paddle
paddle.enable_static()
layer1 = paddle.static.data("t1", shape=[-1, 5], dtype="float32")
layer2 = paddle.static.data("t2", shape=[-1, 4], dtype="float32")
tensor = paddle.static.nn.bilinear_tensor_product(x=layer1, y=layer2, size=1000)
"""
helper = LayerHelper('bilinear_tensor_product', **locals())
dtype = helper.input_dtype('x')
Expand Down

0 comments on commit 6076d0a

Please sign in to comment.