From f1b503a04e779fd0ea79842463c3be99528c2a10 Mon Sep 17 00:00:00 2001
From: NAUD Maxence <maxence.naud@cea.fr>
Date: Wed, 22 Nov 2023 15:31:19 +0000
Subject: [PATCH] [Fix] Datatype to DataType everywhere

---
 include/aidge/data/Tensor.hpp     | 4 ++--
 include/aidge/graph/GraphView.hpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/aidge/data/Tensor.hpp b/include/aidge/data/Tensor.hpp
index 58c434bcc..f8c3a48f7 100644
--- a/include/aidge/data/Tensor.hpp
+++ b/include/aidge/data/Tensor.hpp
@@ -299,7 +299,7 @@ class Tensor : public Data,
      */
     Tensor &operator=(const Tensor &t) {
         resize(t.dims());
-        setDatatype(t.dataType());
+        setDataType(t.dataType());
         if (t.hasImpl()) {
             setBackend(t.mImpl->backend());
             mImpl->copy(t.mImpl->rawPtr(), size());
@@ -362,7 +362,7 @@ class Tensor : public Data,
      * if the Tensor has already been initialized.
      * @param dt DataType.
      */
-    void setDatatype(const DataType dt) {
+    void setDataType(const DataType dt) {
         if (mImpl && (dataType() != dt)) {
             // get ptr before changing Tensor backend or the type difference will trigger a warning
             const void *data = mImpl->rawPtr();
diff --git a/include/aidge/graph/GraphView.hpp b/include/aidge/graph/GraphView.hpp
index 4fb14f66f..6b23cda0d 100644
--- a/include/aidge/graph/GraphView.hpp
+++ b/include/aidge/graph/GraphView.hpp
@@ -186,7 +186,7 @@ public:
     /** @brief Set the same backend for each Operator of the GraphView object's Nodes. */
     void setBackend(const std::string &backend);
     /** @brief Set the same backend for each Operator of the GraphView object's Nodes. */
-    void setDatatype(const DataType &datatype);
+    void setDataType(const DataType &datatype);
 
 ///////////////////////////////////////////////////////
 //        TOPOLOGY
-- 
GitLab