How to using trained ppsci model to predict? #547
-
Does any one know how to using API of ppsci or paddlepaddle to import trained model and predict output? I'm new here, and have tried my best to search the answer in the document. |
Beta Was this translation helpful? Give feedback.
Answered by
HydrogenSulfate
Sep 21, 2023
Replies: 1 comment 1 reply
-
This can be done as below: model = ppsci.arch.MLP(....)
solver = ppsci.solver.Solver(
model,
pretrained_model_path="pretrained_model",
)
input_dict = {...}
output_dict = solver.predict(input_dict, return_numpy=True) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
HydrogenSulfate
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can be done as below: