TensorFlowSharp
TensorFlowSharp copied to clipboard
Crashed when call runner.Run() multiple time.
When I called runner.Run() frequently, it just crashed. Is there any solution to this?
Do you dispose output from runner.Run()
?
Need more info.
Follwing is my usage and I didn't meet the problem.
public int Predict(Bitmap bmp) { var tensor = Bitmap2Ttensor(bmp); var runner = session.GetRunner(); string[] labels = File.ReadAllLines(labelPath); runner .AddInput(graph["image_tensor"][0], tensor) .Fetch( graph["detection_boxes"][0], graph["detection_scores"][0], graph["detection_classes"][0], graph["num_detections"][0]); var output = runner.Run(); //to do }