From ea1df9fe2901a5f4311a59238faa9d6832e75346 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Thu, 29 Jan 2026 12:34:18 +0100 Subject: [PATCH] Fix move constructors in Tensor class --- include/layers/Tensor.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/layers/Tensor.hpp b/include/layers/Tensor.hpp index bb9d94b3..783d0c9f 100644 --- a/include/layers/Tensor.hpp +++ b/include/layers/Tensor.hpp @@ -86,10 +86,10 @@ class Tensor { values_ = a; } - Tensor(const Tensor& t) = default; - Tensor(Tensor&& t) = default; - Tensor& operator=(Tensor&& t) = default; - Tensor& operator=(const Tensor& t) = default; + Tensor(const Tensor& t) noexcept = default; + Tensor(Tensor&& t) noexcept = default; + Tensor& operator=(const Tensor& t) noexcept = default; + Tensor& operator=(Tensor&& t) noexcept = default; [[nodiscard]] Shape get_shape() const { return shape_; } [[nodiscard]] Type get_type() const noexcept { return type_; }