Skip to content
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

Support to create a gradient machine with merged model in c-api #3400

Merged
merged 5 commits into from
Aug 10, 2017

Conversation

Xreki
Copy link
Contributor

@Xreki Xreki commented Aug 10, 2017

Add a c-api interface,

/**
 * @brief Create a gradient machine used for model inference, using config with
 *        parameters which is generated by `paddle merge_model`.
 * @param [out] machine that used for model inference.
 * @param [in] mergedModel
 * @param [in] size
 * @return paddle_error
 */
PD_API paddle_error
paddle_gradient_machine_create_for_inference_with_parameters(
    paddle_gradient_machine* machine, void* mergedModel, uint64_t size);

where mergedModel is generated by paddle merge_model, and it contains config of network and all parameters.

@Xreki Xreki changed the title Support to create a gradient machine with merged model, which is generated by paddle merge_model Support to create a gradient machine with merged model in c-api Aug 10, 2017
@Xreki Xreki requested a review from hedaoyuan August 10, 2017 12:19
@Xreki Xreki merged commit d2258a4 into PaddlePaddle:develop Aug 10, 2017
@Xreki Xreki deleted the capi_read_assets branch October 29, 2019 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants