提交 76fb74dc 编写于 作者: Y Yu Yang 提交者: emailweixu

Fix install_docker.rst and data_sources file open mode

* Follow #223
* Fix #222
上级 6bef8390
...@@ -69,7 +69,7 @@ If you want to launch container with GPU support, you need to set some environme ...@@ -69,7 +69,7 @@ If you want to launch container with GPU support, you need to set some environme
.. code-block:: bash .. code-block:: bash
export CUDA_SO="$(\ls /usr/lib64/libcuda* | xargs -I{} echo '-v {}:{}') $(\ls /usr/lib64/libnvidia* | xargs -I{} echo '-v {}:{}" export CUDA_SO="$(\ls /usr/lib64/libcuda* | xargs -I{} echo '-v {}:{}') $(\ls /usr/lib64/libnvidia* | xargs -I{} echo '-v {}:{}')"
export DEVICES=$(\ls /dev/nvidia* | xargs -I{} echo '--device {}:{}') export DEVICES=$(\ls /dev/nvidia* | xargs -I{} echo '--device {}:{}')
docker run ${CUDA_SO} ${DEVICES} -it paddledev/paddle:gpu-latest docker run ${CUDA_SO} ${DEVICES} -it paddledev/paddle:gpu-latest
......
...@@ -68,7 +68,7 @@ def define_py_data_source(file_list, cls, module, ...@@ -68,7 +68,7 @@ def define_py_data_source(file_list, cls, module,
file_list_name = 'train.list' file_list_name = 'train.list'
if isinstance(cls, TestData): if isinstance(cls, TestData):
file_list_name = 'test.list' file_list_name = 'test.list'
with open(file_list_name, 'r') as f: with open(file_list_name, 'w') as f:
f.writelines(file_list) f.writelines(file_list)
file_list = file_list_name file_list = file_list_name
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册