提交 4759b373 编写于 作者: H Helin Wang

add reuse buffer in functional test

上级 c17cef98
...@@ -51,6 +51,11 @@ int main() { ...@@ -51,6 +51,11 @@ int main() {
panic(); panic();
} }
// get parameters again by reusing the allocated parameter buffers.
if (!paddle_get_params(c, names, params, 2)) {
panic();
}
paddle_release_param(params[0]); paddle_release_param(params[0]);
paddle_release_param(params[1]); paddle_release_param(params[1]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册