Skip to content

[Bug]: paddle3.0如何导出2.x一样的静态模型 #10630

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

Open
1 task done
JxuHenry opened this issue May 21, 2025 · 0 comments
Open
1 task done

[Bug]: paddle3.0如何导出2.x一样的静态模型 #10630

JxuHenry opened this issue May 21, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JxuHenry
Copy link

软件环境

- paddlepaddle:3.0.0
- paddle-custom-npu: 0.0.0
- paddlenlp: 2.8.1

重复问题

  • I have searched the existing issues

错误描述

paddle3.0无法导出2.x一样的静态模型,导致无法推理,如何解决

稳定复现步骤 & 代码

导出代码:
# Convert to static graph with specific input description
model = paddle.jit.to_static(model, input_spec=input_spec)
# Save in static graph model.
save_path = os.path.join(path, file_prefix)
logger.info("Exporting inference model to %s" % save_path)
paddle.jit.save(model, save_path)
logger.info("Inference model exported.")

@JxuHenry JxuHenry added the bug Something isn't working label May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy