PaddlePaddle / models

Officially maintained, supported by PaddlePaddle, including CV, NLP, Speech, Rec, TS, big models and so on.
Apache License 2.0
6.92k stars 2.91k forks source link

run policy_gradient failed #1373

Open wangsouc opened 6 years ago

wangsouc commented 6 years ago

WARNING: Logging before InitGoogleLogging() is written to STDERR I1022 16:02:46.179663 104725 init.cc:47] Init commandline: dummy run.py --tryfromenv=use_pinned_memory,check_nan_inf,benchmark,warpctc_dir,eager_delete_scope,use_mkldnn,initial_cpu_memory_in_mb,init_allocated_mem,free_idle_memory,paddle_num_threads,dist_threadpool_size,cpu_deterministic Traceback (most recent call last): File "run.py", line 14, in brain.build_net() File "/home/wangsijiang01/work/models/fluid/policy_gradient/brain.py", line 38, in build_net self.inferece_program = fluid.defaul_main_program().clone() AttributeError: 'module' object has no attribute 'defaul_main_program'

wanghaoshuang commented 6 years ago

self.inferece_program = fluid.defaul_main_program().clone() -> self.inferece_program = fluid.default_main_program().clone()