-
Notifications
You must be signed in to change notification settings - Fork 179
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
【PPSCI Export&Infer No.22】VP_NSFNet4 #864
【PPSCI Export&Infer No.22】VP_NSFNet4 #864
Conversation
Thanks for your contribution! |
export_path: ./inference/VP_NSFNet4 | ||
pdmodel_path: ${INFER.export_path}.pdmodel | ||
pdpiparams_path: ${INFER.export_path}.pdiparams | ||
output_keys: ['p', 'u', 'v', 'w'] |
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.output_keys重复了
|
||
pred = { | ||
store_key: pred[infer_key] | ||
for store_key, infer_key in zip(cfg.INFER.output_keys, pred.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.
所有INFER.output_keys替换成MODEL.output_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.
没 我不知道为什么 输出被打乱了 要这么对应 输出才是和预测一样的
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.
没 我不知道为什么 输出被打乱了 要这么对应 输出才是和预测一样的
应该是一个已知的问题,可能是jit.save、jit.load存在的BUG导致导出模型的输出顺序跟动态图不一致。
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.
那我是不是得删掉
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.
那我是不是得删掉
先这样吧,等修复之后我再改
examples/nsfnet/VP_NSFNet4.py
Outdated
for store_key, infer_key in zip(cfg.INFER.output_keys, sol.keys()) | ||
} | ||
fig, ax = plt.subplots(1, 4, figsize=(16, 4)) | ||
cmap = plt.cm.get_cmap("jet") |
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.
所有的plt.cm.get_cmap
替换成matplotlib.colormaps.get_cmap
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.
所有的
plt.cm.get_cmap
替换成matplotlib.colormaps.get_cmap
老师 改好了
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.
LGTM
* [SCI Export&Infer No.24] biharmonic2d * P[PSCI Export&Infer No.724] biharmonic2d fix * add export&infer nsfnet4 * add export&infer nsfnet4
PR types
Others
PR changes
Others
Describe