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

capi user documents #2697

Closed
fastback407 opened this issue Jul 3, 2017 · 7 comments
Closed

capi user documents #2697

fastback407 opened this issue Jul 3, 2017 · 7 comments

Comments

@fastback407
Copy link

Hi guys,

It'll be great help if you could support user documents about capi.

Thanks.

@hedaoyuan
Copy link
Contributor

Can this README.md help you?

@fastback407
Copy link
Author

Is there any documents about the apis such as paddle_matrix_create_sparse()?
If I have 2 slot, and 1 is binary, how to combine them, and how to get the predict result?

@hedaoyuan
Copy link
Contributor

Is there any documents about the apis such as paddle_matrix_create_sparse()?

Sorry, there is no document at present, but most api has annotations. paddle_matrix_create_sparse

Here is an example of how to use capi inference. Where the ./trainer_config.bin file is converted from the training file by convert_protobin.sh.

@fastback407
Copy link
Author

Thanks, but what does '10' means in this loop:
printf("Prob: ");
for (int i = 0; i < 10; ++i) {
printf("%.2f ", array[i]);
}
Where could I get it?

@hedaoyuan
Copy link
Contributor

The number 10 comes from here, is the output size of the trainer_config.py.
And the trainer_config.bin in the demo is converted from trainer_config.py.

@fastback407
Copy link
Author

how to config trainer_config.py?

@hedaoyuan
Copy link
Contributor

trainer_config.py is the configuration file used for training.
You can refer to the example inside tutorials.

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

No branches or pull requests

3 participants