From fb02e3ec799c8d504ac9b27d3d290234aafd254b Mon Sep 17 00:00:00 2001
From: Antoni Olivier <olivier.antoni@cea.fr>
Date: Tue, 1 Apr 2025 17:24:52 +0200
Subject: [PATCH] Add clip method for Tensor

---
 include/aidge/data/Tensor.hpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/aidge/data/Tensor.hpp b/include/aidge/data/Tensor.hpp
index bfa17da10..671894236 100644
--- a/include/aidge/data/Tensor.hpp
+++ b/include/aidge/data/Tensor.hpp
@@ -351,7 +351,8 @@ class Tensor : public Data,
      * @brief Element-wise clip operation for Tensor.
      * @return Tensor
      */
-    Tensor clip(float min, float max) const;
+    Tensor clip(float min = std::numeric_limits<float>::lowest(),
+                float max = std::numeric_limits<float>::max()) const;
 
     ~Tensor() noexcept;
 
-- 
GitLab