diff --git a/include/otbTensorflowGraphOperations.cxx b/include/otbTensorflowGraphOperations.cxx
index e41c88d2a3093bb9766fcdc2f911448ce33795ee..794a302bf0f8e2e456da82fd95c061b1a843e0bb 100644
--- a/include/otbTensorflowGraphOperations.cxx
+++ b/include/otbTensorflowGraphOperations.cxx
@@ -105,7 +105,9 @@ void GetTensorAttributes(const tensorflow::GraphDef & graph, std::vector<std::st
       if (node.name().compare((*nameIt)) == 0)
       {
         found = true;
-        tensorflow::DataType ts_dt;
+
+        // Set default to DT_FLOAT
+        tensorflow::DataType ts_dt = tensorflow::DT_FLOAT;
 
         // Default (input?) tensor type
         auto test_is_output = node.attr().find("T");