- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I don't understand how to deal with memory with GPU plugin.
When i run the code below the memory grow continually. The probleme does not appear when i use CPU plugin.
The code is build with Visual Studio 2015 with OpenVino R3.1 and run on windows.
Did i forget to clean something ?
#include "stdafx.h"
#include "inference_engine.hpp"
void load_network(InferenceEngine::Core &ie) {
std::string network_path_xml = "path to xml file";
std::string network_path_bin = "path to bin file";
InferenceEngine::CNNNetReader reader;
reader.ReadNetwork(network_path_xml);
reader.ReadWeights(network_path_bin);
InferenceEngine::ExecutableNetwork exec_network = ie.LoadNetwork(reader.getNetwork(), "GPU");
InferenceEngine::InferRequest request = exec_network.CreateInferRequest();
}
int main()
{
InferenceEngine::Core ie;
for (int i = 0; i < 100; i++) {
load_network(ie);
}
return 0;
}
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page