File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
python/paddle/fluid/tests/unittests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,13 @@ def test_uniform_initializer_random_seed(self):
88
88
dtype = "float32" ,
89
89
shape = [5 , 10 ],
90
90
lod_level = 0 ,
91
- name = "param " ,
91
+ name = "param1 " ,
92
92
initializer = initializer .UniformInitializer ())
93
93
block .create_parameter (
94
94
dtype = "float32" ,
95
95
shape = [5 , 10 ],
96
96
lod_level = 0 ,
97
- name = "param " ,
97
+ name = "param2 " ,
98
98
initializer = initializer .UniformInitializer (seed = 456 ))
99
99
init_op = block .ops [1 ]
100
100
self .assertEqual (init_op .attr ("seed" ), 123 )
@@ -136,7 +136,7 @@ def test_uniform_initializer_two_op(self):
136
136
init_op0 = block .ops [0 ]
137
137
self .assertEqual (init_op0 .type , 'uniform_random' )
138
138
self .assertAlmostEqual (init_op0 .attr ('min' ), - 4.2 , delta = DELTA )
139
- self .assertAlmostEqual (init_op0 .attr ('max' ), 1 .0 , delta = DELTA )
139
+ self .assertAlmostEqual (init_op0 .attr ('max' ), 0 .0 , delta = DELTA )
140
140
self .assertEqual (init_op0 .attr ('seed' ), 123 )
141
141
142
142
You can’t perform that action at this time.
0 commit comments