Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RuntimeError: Can't call main_program when full_graph=False. Use padd…
…le.jit.to_static(full_graph=True) instead. (lyuwenyu#397) File "/git/RT-DETR/rtdetr_paddle/ppdet/engine/trainer.py", line 937, in _get_infer_cfg_and_input_spec input_spec, static_model.forward.main_program, File "/miniconda3/envs/rtdetrpaddle/lib/python3.10/site-packages/paddle/jit/dy2static/program_translator.py", line 757, in main_program raise_error_template("main_program")() File "/miniconda3/envs/rtdetrpaddle/lib/python3.10/site-packages/paddle/jit/dy2static/program_translator.py", line 691, in _raise_error raise RuntimeError(error_template.format(func=func_str)) RuntimeError: Can't call main_program when full_graph=False. Use paddle.jit.to_static(full_graph=True) instead.
- Loading branch information