diff --git a/include/aidge/backend/TensorImpl.hpp b/include/aidge/backend/TensorImpl.hpp index 6c5a61ab273225c4e7be3a1091989fc570e80ed7..62f13acb3db81954a4fbb753a3e68e1c5a516402 100644 --- a/include/aidge/backend/TensorImpl.hpp +++ b/include/aidge/backend/TensorImpl.hpp @@ -154,12 +154,12 @@ public: /** * Return the number of elements stored. */ - std::size_t size() const { return mNbElts; } + inline std::size_t size() const noexcept { return mNbElts; } /** * Return the size (in bytes) of one element (scalar). */ - virtual std::size_t scalarSize() const = 0; + virtual std::size_t scalarSize() const noexcept = 0; constexpr const char *backend() const { return mBackend; } virtual ~TensorImpl() = default; virtual bool operator==(const TensorImpl &othImpl) const = 0;