Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复ips计算过少的问题 #1235

Merged
merged 15 commits into from
Dec 1, 2020
Merged

修复ips计算过少的问题 #1235

merged 15 commits into from
Dec 1, 2020

Conversation

WenmuZhou
Copy link
Collaborator

No description provided.

tools/program.py Outdated
model.train()
if dist.get_rank() == 0:
model.eval()
print('infer')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

删掉吧

Copy link
Collaborator Author

@WenmuZhou WenmuZhou Nov 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个函数已经不适用最新的dev了,周一删掉,最新的dev中保存inference模型可以直接用export_model.py

tools/program.py Outdated
config['Architecture']['model_type'])
if config['Architecture']['model_type'] == 'rec':
input_shape = [None, 3, 32, None]
jit_model = paddle.jit.to_static(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这块input_shape写成可配置的形式吧,在配置文件里获取

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

tools/program.py Outdated
if dist.get_rank() == 0:
model.eval()
print('infer')
save_path = '{}/infer/{}'.format(config['Global']['save_model_dir'],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

save path提供一个prefix参数吧,不然训练时保存多次的话,会覆盖掉

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

@WenmuZhou WenmuZhou merged commit 9b2c0e4 into PaddlePaddle:dygraph Dec 1, 2020
@WenmuZhou WenmuZhou deleted the dygraph_rc branch December 1, 2020 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants