Portability: g++-11 has different std policy.
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 16 Mar 2022 07:39:44 +0000 (16:39 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Sun, 20 Mar 2022 03:32:51 +0000 (12:32 +0900)
It requires stdexcept and limits for std::invalid_arguments and std::numeric_limits.

Fixes #1857

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
nntrainer/tensor/memory_pool.cpp
nntrainer/tensor/tensor.h

index 9b620c4..e9aed59 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <numeric>
 #include <vector>
+#include <limits>
 
 #include <memory_pool.h>
 #include <nntrainer_error.h>
index dbb8776..8279e61 100644 (file)
@@ -30,6 +30,7 @@
 #include <functional>
 #include <memory>
 #include <vector>
+#include <stdexcept>
 
 #include <tensor_dim.h>