Skip to content

How to using trained ppsci model to predict? #547

Answered by HydrogenSulfate
JinYongBu asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JinYongBu
Comment options

Answer selected by HydrogenSulfate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants