From bf720bd87d25fb9e3e140b7d9a6f38128290e1e4 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Wed, 19 Oct 2016 05:29:56 +0000 Subject: [PATCH 1/2] Follow #223 --- python/paddle/trainer_config_helpers/data_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/trainer_config_helpers/data_sources.py b/python/paddle/trainer_config_helpers/data_sources.py index 3b5c17a271f02b..f51140656d0dcf 100644 --- a/python/paddle/trainer_config_helpers/data_sources.py +++ b/python/paddle/trainer_config_helpers/data_sources.py @@ -68,7 +68,7 @@ def define_py_data_source(file_list, cls, module, file_list_name = 'train.list' if isinstance(cls, TestData): 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) file_list = file_list_name From 639ac6c5915985a6ce14f96adc5c215116f23896 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Wed, 19 Oct 2016 05:31:38 +0000 Subject: [PATCH 2/2] Fix #222 --- doc/build/docker_install.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/build/docker_install.rst b/doc/build/docker_install.rst index 542b9bac27afb8..e95de35f4da35f 100644 --- a/doc/build/docker_install.rst +++ b/doc/build/docker_install.rst @@ -69,7 +69,7 @@ If you want to launch container with GPU support, you need to set some environme .. 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 {}:{}') docker run ${CUDA_SO} ${DEVICES} -it paddledev/paddle:gpu-latest