From c7b82461d62b869dab5274fe45370c044b75a878 Mon Sep 17 00:00:00 2001
From: Remi Cresson <remi.cresson@irstea.fr>
Date: Tue, 30 Mar 2021 22:52:16 +0200
Subject: [PATCH] ENH: add uint8, uint16, int16, uint32, int64

---
 include/otbTensorflowCopyUtils.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/otbTensorflowCopyUtils.cxx b/include/otbTensorflowCopyUtils.cxx
index d20f007..07af3e2 100644
--- a/include/otbTensorflowCopyUtils.cxx
+++ b/include/otbTensorflowCopyUtils.cxx
@@ -101,9 +101,9 @@ void RecopyImageRegionToTensorWithCast(const typename TImage::Pointer inputPtr,
   else if (dt == tensorflow::DT_DOUBLE)
     RecopyImageRegionToTensor<TImage, double>(inputPtr, region, tensor, elemIdx);
   else if (dt == tensorflow::DT_UINT64)
-    RecopyImageRegionToTensor<TImage, unsigned long int>(inputPtr, region, tensor, elemIdx);
+    RecopyImageRegionToTensor<TImage, unsigned long long int>(inputPtr, region, tensor, elemIdx);
   else if (dt == tensorflow::DT_INT64)
-    RecopyImageRegionToTensor<TImage, long int>(inputPtr, region, tensor, elemIdx);
+    RecopyImageRegionToTensor<TImage, long long int>(inputPtr, region, tensor, elemIdx);
   else if (dt == tensorflow::DT_UINT32)
     RecopyImageRegionToTensor<TImage, unsigned int>(inputPtr, region, tensor, elemIdx);
   else if (dt == tensorflow::DT_INT32)
-- 
GitLab