From fbb91c07319b7a6eca4b42f419ba4403793271c5 Mon Sep 17 00:00:00 2001 From: Emmanuel Benazera Date: Mon, 9 Mar 2015 14:16:16 +0100 Subject: [PATCH] Caffe db auto close on destruction --- src/caffeinputconns.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/caffeinputconns.h b/src/caffeinputconns.h index 4ffb95880..87cc286e6 100644 --- a/src/caffeinputconns.h +++ b/src/caffeinputconns.h @@ -75,8 +75,8 @@ namespace dd :ImgInputFileConn(i),CaffeInputInterface(i) {} ~ImgCaffeInputFileConn() { - if (_test_db) - _test_db->Close(); + //if (_test_db) + //_test_db->Close(); } // size of each element in Caffe jargon