Fix build warning
authorInki Dae <inki.dae@samsung.com>
Thu, 7 Jan 2021 08:01:50 +0000 (17:01 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 2 Feb 2021 06:50:36 +0000 (15:50 +0900)
This patch fixes below build warning,
 warning: 'const void InferenceEngineImpl::ARMNNImpl::GraphDebugCallback(armnn::LayerGuid,
 unsigned int, armnn::ITensorHandle*)' defined but not used [-Wunused-function]

Change-Id: I736cb165ba29300b376ea834df379f78a595e9ce
Signed-off-by: Inki Dae <inki.dae@samsung.com>
src/inference_engine_armnn.cpp

index 9f397f58ca3cc48ca8f4c7e3043e22d2e24dc685..057eedbae5ed9e1863420619d188b729e481ed65 100644 (file)
@@ -230,6 +230,7 @@ namespace ARMNNImpl
                return ret;
        }
 
+#if GRAPH_DEBUG
        static const void GraphDebugCallback(armnn::LayerGuid guid, unsigned int slotIndex, armnn::ITensorHandle* tensor)
        {
                std::cout << "input tensor shape : " << tensor->GetShape() << ", ";
@@ -238,6 +239,7 @@ namespace ARMNNImpl
 
                // TODO.
        }
+#endif
 
        int InferenceARMNN::Load(std::vector<std::string> model_paths,
                                                         inference_model_format_e model_format)