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 d6a7648 commit dfd79c8Copy full SHA for dfd79c8
doc/design/multi_language_interface/00.why_plain_c.md
@@ -58,14 +58,14 @@ typedef void* paddle_matrix;
58
typedef int paddle_error;
59
60
extern "C"
61
-paddle_error paddle_matrix_shape(paddle_matrix matrix,
62
- uint64_t* width,
63
- uint64_t* height);
+paddle_error paddle_matrix_get_shape(paddle_matrix matrix,
+ uint64_t* width,
+ uint64_t* height);
64
```
65
而在CPP里面实现这个C的接口,文件 `paddle_matrix.cpp`
66
67
```cpp
68
-#include "paddle/math/matrix.hpp"
+#include "paddle/math/matrix.h"
69
70
paddle_error paddle_matrix_shape(paddle_matrix matrix,
71
uint64_t *width,
0 commit comments