Skip to content

Commit dfd79c8

Browse files
committed
Follow comments.
1 parent d6a7648 commit dfd79c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/design/multi_language_interface/00.why_plain_c.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ typedef void* paddle_matrix;
5858
typedef int paddle_error;
5959

6060
extern "C"
61-
paddle_error paddle_matrix_shape(paddle_matrix matrix,
62-
uint64_t* width,
63-
uint64_t* height);
61+
paddle_error paddle_matrix_get_shape(paddle_matrix matrix,
62+
uint64_t* width,
63+
uint64_t* height);
6464
```
6565
而在CPP里面实现这个C的接口,文件 `paddle_matrix.cpp`
6666
6767
```cpp
68-
#include "paddle/math/matrix.hpp"
68+
#include "paddle/math/matrix.h"
6969
extern "C"
7070
paddle_error paddle_matrix_shape(paddle_matrix matrix,
7171
uint64_t *width,

0 commit comments

Comments
 (0)