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 e797dd1 commit 9dd9939Copy full SHA for 9dd9939
paddle/contrib/inference/demo/simple_on_word2vec.cc
@@ -61,6 +61,8 @@ void Main(bool use_gpu) {
61
for (size_t i = 0; i < std::min(5UL, num_elements); i++) {
62
LOG(INFO) << static_cast<float*>(outputs.front().data.data)[i];
63
}
64
+ // TODO(Superjomn): this is should be free automatically
65
+ free(outputs[0].data.data);
66
67
68
@@ -101,6 +103,7 @@ void MainThreads(int num_threads) {
101
103
102
104
105
106
107
108
});
109
0 commit comments