File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
python/paddle/fluid/layers Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -13263,10 +13263,11 @@ def bilinear_tensor_product(x,
1326313263 Examples:
1326413264 .. code-block:: python
1326513265
13266- import paddle.fluid as fluid
13267- layer1 = fluid.data("t1", shape=[-1, 5], dtype="float32")
13268- layer2 = fluid.data("t2", shape=[-1, 4], dtype="float32")
13269- tensor = fluid.layers.bilinear_tensor_product(x=layer1, y=layer2, size=1000)
13266+ import paddle
13267+ paddle.enable_static()
13268+ layer1 = paddle.static.data("t1", shape=[-1, 5], dtype="float32")
13269+ layer2 = paddle.static.data("t2", shape=[-1, 4], dtype="float32")
13270+ tensor = paddle.static.nn.bilinear_tensor_product(x=layer1, y=layer2, size=1000)
1327013271 """
1327113272 helper = LayerHelper('bilinear_tensor_product', **locals())
1327213273 dtype = helper.input_dtype('x')
You can’t perform that action at this time.
0 commit comments