From e950ce7148759472d67856d7c1ba7ec35fe364cd Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Fri, 23 Nov 2018 05:54:20 +0000 Subject: [PATCH] test for mac --- python/paddle/fluid/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/__init__.py b/python/paddle/fluid/__init__.py index a6416326ed8..ac2a7ea47e3 100644 --- a/python/paddle/fluid/__init__.py +++ b/python/paddle/fluid/__init__.py @@ -119,7 +119,8 @@ def __bootstrap__(): 'eager_delete_tensor_gb', 'allocator_strategy', 'reader_queue_speed_test_mode', 'print_sub_graph_dir' ] - if sysstr != 'Darwin': + if 'Darwin' not in sysstr: + print("aaaaa") read_env_flags.append('use_pinned_memory') if os.name != 'nt': -- GitLab