We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d3e816 commit d6bd5b1Copy full SHA for d6bd5b1
paddle/capi/examples/model_inference/dense/main.cpp
@@ -2,6 +2,7 @@
2
#include <time.h>
3
#include <iostream>
4
#include <vector>
5
+
6
#include "../common/common.h"
7
8
#define CONFIG_BIN "./trainer_config.bin"
@@ -40,7 +41,7 @@ int main() {
40
41
for (int i = 0; i < input.size(); ++i) {
42
input[i] = rand() / ((float)RAND_MAX);
43
}
-
44
45
// Set value for the input matrix
46
CHECK(paddle_matrix_set_value(mat, input.data()));
47
@@ -66,7 +67,7 @@ int main() {
66
67
printf("Prob: \n");
68
for (int i = 0; i < height * width; ++i) {
69
printf("%.4f ", result[i]);
- if ((i + 1) % width == 0){
70
+ if ((i + 1) % width == 0) {
71
printf("\n");
72
73
0 commit comments