diff --git a/python/paddle/fluid/__init__.py b/python/paddle/fluid/__init__.py index a6416326ed..ac2a7ea47e 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':