提交 a006c54c 编写于 作者: T tangwei12

fix code style #9660

上级 e5113da3
...@@ -117,8 +117,10 @@ def test(): ...@@ -117,8 +117,10 @@ def test():
return reader return reader
def fluid_model(): def fluid_model():
parameter_tar = paddle.dataset.common.download(FLUID_URL_MODEL, 'uci_housing', FLUID_MD5_MODEL, 'fit_a_line.fluid.tar') parameter_tar = paddle.dataset.common.download(
FLUID_URL_MODEL, 'uci_housing', FLUID_MD5_MODEL, 'fit_a_line.fluid.tar')
tar = tarfile.TarFile(parameter_tar, mode='r') tar = tarfile.TarFile(parameter_tar, mode='r')
dirpath = tempfile.mkdtemp() dirpath = tempfile.mkdtemp()
...@@ -126,6 +128,7 @@ def fluid_model(): ...@@ -126,6 +128,7 @@ def fluid_model():
return dirpath return dirpath
def predict_reader(): def predict_reader():
""" """
It returns just one tuple data to do inference. It returns just one tuple data to do inference.
...@@ -135,12 +138,13 @@ def predict_reader(): ...@@ -135,12 +138,13 @@ def predict_reader():
""" """
global UCI_TEST_DATA global UCI_TEST_DATA
load_data(paddle.dataset.common.download(URL, 'uci_housing', MD5)) load_data(paddle.dataset.common.download(URL, 'uci_housing', MD5))
return (UCI_TEST_DATA[0][:-1],) return (UCI_TEST_DATA[0][:-1], )
def fetch(): def fetch():
paddle.dataset.common.download(URL, 'uci_housing', MD5) paddle.dataset.common.download(URL, 'uci_housing', MD5)
def convert(path): def convert(path):
""" """
Converts dataset to recordio format Converts dataset to recordio format
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册