-
Notifications
You must be signed in to change notification settings - Fork 184
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
【SCU】【PPSCI Export&Infer No.28】phylstm #1031
base: develop
Are you sure you want to change the base?
Conversation
Thanks for your contribution! |
wwwuyan seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
代码运行会报错的,还麻烦改完自测一下
model = ppsci.arch.DeepPhyLSTM( | ||
cfg.MODEL.input_size, | ||
eta.shape[2], | ||
cfg.MODEL.hidden_size, | ||
cfg.MODEL.model_type, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# initialize solver | ||
solver = ppsci.solver.Solver( | ||
model, | ||
pretrained_model_path=cfg.INFER.pretrained_model_path, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretrained_model_path=cfg.INFER.pretrained_model_path, | |
cfg=cfg, |
input_spec = [ | ||
{key: InputSpec([None, 1], "float32", name=key) for key in model.input_keys}, | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的形状可以运行evaluate时,在DeepPhyLSTM.forward函数里打印输入的shape得到
PR types
New features
PR changes
OPs
Describe
为phylstm添加export和inference