Skip to content

Commit ed8506f

Browse files
author
Abhinav Arora
committed
Fix CI
1 parent b7fd98c commit ed8506f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/paddle/v2/fluid/layers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ def _get_default_param_initializer():
670670
'contextStart': -int(filter_size / 2),
671671
'contextLength': filter_size
672672
})
673-
pre_act = helper.append_bias_op(pre_bias, _get_default_bias_initializer)
673+
pre_act = helper.append_bias_op(pre_bias, bias_initializer)
674674
return helper.append_activation(pre_act)
675675

676676

python/paddle/v2/fluid/tests/test_variable.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import unittest
2-
from paddle.v2.fluid.framework import Variable, g_main_program, Program
2+
from paddle.v2.fluid.framework import g_main_program, Program, convert_np_dtype_to_dtype_
33
import paddle.v2.fluid.core as core
44
import numpy as np
55

66

77
class TestVariable(unittest.TestCase):
88
def test_np_dtype_convert(self):
99
DT = core.DataType
10-
convert = Variable._convert_np_dtype_to_dtype_
10+
convert = convert_np_dtype_to_dtype_
1111
self.assertEqual(DT.FP32, convert(np.float32))
1212
self.assertEqual(DT.FP16, convert("float16"))
1313
self.assertEqual(DT.FP64, convert("float64"))

0 commit comments

Comments
 (0)