We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5c7737 + 54cb6bd commit f94a0ccCopy full SHA for f94a0cc
python/paddle/trainer_config_helpers/__init__.py
@@ -22,4 +22,4 @@
22
from attrs import *
23
24
# This will enable operator overload for LayerOutput
25
-import math
+import math as layer_math
python/paddle/trainer_config_helpers/tests/configs/math_ops.py
@@ -1,15 +1,14 @@
1
from paddle.trainer_config_helpers import *
2
-from paddle.trainer_config_helpers import math
3
4
settings(batch_size=1000, learning_rate=1e-5)
5
6
x = data_layer(name='data', size=100)
7
-x = math.exp(x)
8
-x = math.log(x)
9
-x = math.abs(x)
10
-x = math.sigmoid(x)
11
-x = math.square(x)
12
+x = layer_math.exp(x)
+x = layer_math.log(x)
+x = layer_math.abs(x)
+x = layer_math.sigmoid(x)
+x = layer_math.square(x)
13
y = 1 + x
14
y = y + 1
15
y = x + y
0 commit comments