From 8425fc5492e49c8af4708e7c626b237c13cbf009 Mon Sep 17 00:00:00 2001
From: Travis CI 1. DotMulProjection if input is a layer.
+ DotMulProjection with a layer as input.
It performs element-wise multiplication with weight.
paddle.trainer_config_helpers.layers.
dotmul_projection
(*args, **kwargs)
proj = dotmul_projection(input=layer)
2. DotMulOperator if input is a list or tuple. -It takes two inputs, performs element-wise multiplication:
-where \(.*\) means element-wise multiplication, and -scale is a config scalar, its default value is one.
-The example usage is:
-op = dotmul_projection(input=[layer1, layer2],
- scale=2.0)
-
Parameters: |
|
---|---|
Returns: | A DotMulProjection or DotMulOperator Object. + |
Returns: | A DotMulProjection Object. |
Return type: | DotMulProjection or DotMulOperator + |
Return type: | DotMulProjection |