diff --git a/include/aidge/operator/ConvDepthWiseImpl.hpp b/include/aidge/operator/ConvDepthWiseImpl.hpp index e9822ffa75885bc7f11090a29b16bb6e9b38e454..64f5df8c4dc6994629b10b2021d6f35d745ed7b2 100644 --- a/include/aidge/operator/ConvDepthWiseImpl.hpp +++ b/include/aidge/operator/ConvDepthWiseImpl.hpp @@ -53,7 +53,7 @@ class ConvDepthWiseImpl2D_cpu : public OperatorImpl { public: NbElts_t getNbRequiredData(const IOIndex_t inputIdx) const override final; NbElts_t getNbRequiredProtected(const IOIndex_t inputIdx) const override final; - NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, const std::vector<DimSize_t> &inputsSize) const override final; + NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, __attribute__((unused)) const std::vector<DimSize_t> &inputsSize) const override final; NbElts_t getNbConsumedData(const IOIndex_t inputIdx) const override final; NbElts_t getNbProducedData(const IOIndex_t outputIdx) const override final; diff --git a/include/aidge/operator/ConvImpl.hpp b/include/aidge/operator/ConvImpl.hpp index d3fea6ac3487b15ad0e2b902f65ae7d1bf8dc283..7bdeb0597d628c802270cd8af5a55c1362704483 100644 --- a/include/aidge/operator/ConvImpl.hpp +++ b/include/aidge/operator/ConvImpl.hpp @@ -53,7 +53,7 @@ class ConvImpl2D_cpu : public OperatorImpl { public: NbElts_t getNbRequiredData(const IOIndex_t inputIdx) const override final; NbElts_t getNbRequiredProtected(const IOIndex_t inputIdx) const override final; - NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, const std::vector<DimSize_t> &inputsSize) const override final; + NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, __attribute__((unused)) const std::vector<DimSize_t> &inputsSize) const override final; NbElts_t getNbConsumedData(const IOIndex_t inputIdx) const override final; NbElts_t getNbProducedData(const IOIndex_t outputIdx) const override final; diff --git a/include/aidge/operator/FCImpl.hpp b/include/aidge/operator/FCImpl.hpp index a0135d96232306d975284eb1240b03c1326a2f0d..44f53a57f0cffe6717661c4d7f96647682b25571 100644 --- a/include/aidge/operator/FCImpl.hpp +++ b/include/aidge/operator/FCImpl.hpp @@ -47,7 +47,7 @@ class FCImpl_cpu : public OperatorImpl { public: NbElts_t getNbRequiredData(const IOIndex_t inputIdx) const override final; NbElts_t getNbRequiredProtected(const IOIndex_t inputIdx) const override final; - NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, const std::vector<DimSize_t> &inputsSize) const override final; + NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, __attribute__((unused)) const std::vector<DimSize_t> &inputsSize) const override final; NbElts_t getNbConsumedData(const IOIndex_t inputIdx) const override final; NbElts_t getNbProducedData(const IOIndex_t outputIdx) const override final; diff --git a/include/aidge/operator/LeakyReLUImpl.hpp b/include/aidge/operator/LeakyReLUImpl.hpp index a04b810be35cb76bec839aeb1d3ab94ee967e906..dd5bc4d9452374049ab3753a0331befa9b76d2e7 100644 --- a/include/aidge/operator/LeakyReLUImpl.hpp +++ b/include/aidge/operator/LeakyReLUImpl.hpp @@ -46,7 +46,7 @@ class LeakyReLUImpl_cpu : public OperatorImpl { public: NbElts_t getNbRequiredData(const IOIndex_t inputIdx) const override final; NbElts_t getNbRequiredProtected(const IOIndex_t inputIdx) const override final; - NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, const std::vector<DimSize_t>& inputsSize) const override final; + NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, __attribute__((unused)) const std::vector<DimSize_t>& inputsSize) const override final; NbElts_t getNbConsumedData(const IOIndex_t inputIdx) const override final; NbElts_t getNbProducedData(const IOIndex_t outputIdx) const override final; diff --git a/include/aidge/operator/ProducerImpl.hpp b/include/aidge/operator/ProducerImpl.hpp index 9cce69c6bc1d71277d88df4a8f27698c7db2fa66..d1376df3572c986f3c2369c72141680ab6291b0b 100644 --- a/include/aidge/operator/ProducerImpl.hpp +++ b/include/aidge/operator/ProducerImpl.hpp @@ -34,7 +34,7 @@ class ProducerImpl_cpu : public OperatorImpl { public: NbElts_t getNbRequiredData(const IOIndex_t inputIdx) const override final; NbElts_t getNbRequiredProtected(const IOIndex_t inputIdx) const override final; - NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, const std::vector<DimSize_t> &inputsSize) const override final; + NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, __attribute__((unused)) const std::vector<DimSize_t> &inputsSize) const override final; NbElts_t getNbConsumedData(const IOIndex_t inputIdx) const override final; NbElts_t getNbProducedData(const IOIndex_t outputIdx) const override final; diff --git a/include/aidge/operator/ReLUImpl.hpp b/include/aidge/operator/ReLUImpl.hpp index 2b556bc1bc5e0ad353da91ee599a81cc32ed4275..905a76917a25f7db0e65748d28c67ef06f353170 100644 --- a/include/aidge/operator/ReLUImpl.hpp +++ b/include/aidge/operator/ReLUImpl.hpp @@ -46,7 +46,7 @@ class ReLUImpl_cpu : public OperatorImpl { public: NbElts_t getNbRequiredData(const IOIndex_t inputIdx) const override final; NbElts_t getNbRequiredProtected(const IOIndex_t inputIdx) const override final; - NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, const std::vector<DimSize_t>& inputsSize) const override final; + NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, __attribute__((unused)) const std::vector<DimSize_t>& inputsSize) const override final; NbElts_t getNbConsumedData(const IOIndex_t inputIdx) const override final; NbElts_t getNbProducedData(const IOIndex_t outputIdx) const override final; diff --git a/include/aidge/operator/SoftmaxImpl.hpp b/include/aidge/operator/SoftmaxImpl.hpp index 5020802c84aef4ccd77403db987c47fedf0cf8f6..c4d718bbadf09bfefbd4509ad0b99ffc144b4e61 100644 --- a/include/aidge/operator/SoftmaxImpl.hpp +++ b/include/aidge/operator/SoftmaxImpl.hpp @@ -46,7 +46,7 @@ class SoftmaxImpl_cpu : public OperatorImpl { public: NbElts_t getNbRequiredData(const IOIndex_t inputIdx) const override final; NbElts_t getNbRequiredProtected(const IOIndex_t inputIdx) const override final; - NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, const std::vector<DimSize_t>& inputsSize) const override final; + NbElts_t getRequiredMemory(__attribute__((unused)) const IOIndex_t outputIdx, __attribute__((unused)) const std::vector<DimSize_t>& inputsSize) const override final; NbElts_t getNbConsumedData(const IOIndex_t inputIdx) const override final; NbElts_t getNbProducedData(const IOIndex_t outputIdx) const override final; diff --git a/src/operator/AddImpl.cpp b/src/operator/AddImpl.cpp index 47717cef1566512b0f0d37beb11fb3d28832436e..f4e08ba540b814a81be9cbea74ebc7644f6f843a 100644 --- a/src/operator/AddImpl.cpp +++ b/src/operator/AddImpl.cpp @@ -10,9 +10,9 @@ ********************************************************************************/ #include <cassert> -#include <numeric> -#include <chrono> -#include <thread> +#include <chrono> // std::chrono::milliseconds +#include <numeric> // std::accumulate +#include <thread> // std::this_thread::sleep_for #include <vector> #include "aidge/operator/Conv.hpp" diff --git a/src/operator/BatchNormImpl.cpp b/src/operator/BatchNormImpl.cpp index 2b104f3c205bad8147b388c46592111e22da2782..5bb7d0a9d36e3f7918ce1a5aa6ae4e9dbb96e9a1 100644 --- a/src/operator/BatchNormImpl.cpp +++ b/src/operator/BatchNormImpl.cpp @@ -12,8 +12,7 @@ #include "aidge/operator/BatchNormImpl.hpp" #include <cassert> -#include <numeric> -#include <thread> +#include <numeric> // std::accumulate #include <vector> #include "aidge/operator/BatchNormImpl_forward_kernels.hpp" @@ -35,8 +34,8 @@ Aidge::NbElts_t Aidge::BatchNormImpl2D_cpu::getNbRequiredProtected(IOIndex_t /*i return 0; } -Aidge::NbElts_t Aidge::BatchNormImpl2D_cpu::getRequiredMemory(const Aidge::IOIndex_t outputIdx, - const std::vector<Aidge::DimSize_t> &inputsSize) const { +Aidge::NbElts_t Aidge::BatchNormImpl2D_cpu::getRequiredMemory(__attribute__((unused)) const Aidge::IOIndex_t outputIdx, + __attribute__((unused)) const std::vector<Aidge::DimSize_t> &inputsSize) const { // Requires the whole tensors, regardless of available data on inputs assert(outputIdx == 0 && "operator has only one output"); diff --git a/src/operator/ConvDepthWiseImpl.cpp b/src/operator/ConvDepthWiseImpl.cpp index 4dd687fd99bd775a67663e2e05a09b1541ec2f12..178d602ffa73c00efef596dc2d31f51619b6600d 100644 --- a/src/operator/ConvDepthWiseImpl.cpp +++ b/src/operator/ConvDepthWiseImpl.cpp @@ -12,9 +12,9 @@ #include "aidge/operator/ConvDepthWiseImpl.hpp" #include <cassert> -#include <chrono> -#include <numeric> -#include <thread> +#include <chrono> // std::chrono::milliseconds +#include <numeric> // std::accumulate +#include <thread> // std::this_thread::sleep_for #include <vector> #include "aidge/operator/ConvDepthWiseImpl_forward_kernels.hpp" @@ -36,8 +36,8 @@ Aidge::NbElts_t Aidge::ConvDepthWiseImpl2D_cpu::getNbRequiredProtected(IOIndex_t return 0; } -Aidge::NbElts_t Aidge::ConvDepthWiseImpl2D_cpu::getRequiredMemory(const Aidge::IOIndex_t outputIdx, - const std::vector<Aidge::DimSize_t> &inputsSize) const { +Aidge::NbElts_t Aidge::ConvDepthWiseImpl2D_cpu::getRequiredMemory(__attribute__((unused)) const Aidge::IOIndex_t outputIdx, + __attribute__((unused)) const std::vector<Aidge::DimSize_t> &inputsSize) const { // Requires the whole tensors, regardless of available data on inputs assert(outputIdx == 0 && "operator has only one output"); diff --git a/src/operator/ConvImpl.cpp b/src/operator/ConvImpl.cpp index 0c892673b049b1789ca6ab5bab8b279835d87ce9..58c83da14aeca4ae9104dea525a4ad236243775f 100644 --- a/src/operator/ConvImpl.cpp +++ b/src/operator/ConvImpl.cpp @@ -12,9 +12,9 @@ #include "aidge/operator/ConvImpl.hpp" #include <cassert> -#include <chrono> -#include <numeric> -#include <thread> +#include <chrono> // std::chrono::milliseconds +#include <numeric> // std::accumulate +#include <thread> // std::this_thread::sleep_for #include <vector> #include "aidge/operator/ConvImpl_forward_kernels.hpp" @@ -36,8 +36,8 @@ Aidge::NbElts_t Aidge::ConvImpl2D_cpu::getNbRequiredProtected(IOIndex_t /*inputI return 0; } -Aidge::NbElts_t Aidge::ConvImpl2D_cpu::getRequiredMemory(const Aidge::IOIndex_t outputIdx, - const std::vector<Aidge::DimSize_t> &inputsSize) const { +Aidge::NbElts_t Aidge::ConvImpl2D_cpu::getRequiredMemory(__attribute__((unused)) const Aidge::IOIndex_t outputIdx, + __attribute__((unused)) const std::vector<Aidge::DimSize_t> &inputsSize) const { // Requires the whole tensors, regardless of available data on inputs assert(outputIdx == 0 && "operator has only one output"); diff --git a/src/operator/FCImpl.cpp b/src/operator/FCImpl.cpp index 3195aa99e3e238a5a0dd65db7adfc599a1f91cfe..aa47296931302cff379f8e296a5ab527b0f2477b 100644 --- a/src/operator/FCImpl.cpp +++ b/src/operator/FCImpl.cpp @@ -10,9 +10,9 @@ ********************************************************************************/ #include <cassert> -#include <chrono> -#include <numeric> -#include <thread> +#include <chrono> // std::chrono::milliseconds +#include <numeric> // std::accumulate +#include <thread> // std::this_thread::sleep_for #include <vector> #include "aidge/operator/FC.hpp" @@ -44,7 +44,7 @@ Aidge::NbElts_t } Aidge::NbElts_t Aidge::FCImpl_cpu::getRequiredMemory( - const IOIndex_t outputIdx, const std::vector<DimSize_t> &inputsSize) const + __attribute__((unused)) const IOIndex_t outputIdx, __attribute__((unused)) const std::vector<DimSize_t> &inputsSize) const { // Requires the whole tensors, regardless of available data on inputs assert(outputIdx == 0 && "operator has only one output"); diff --git a/src/operator/LeakyReLUImpl.cpp b/src/operator/LeakyReLUImpl.cpp index c7493f12773fe372c6a07767c0151ac34471b65b..8c88e1f7a507cc426416d53dc895dce077ead415 100644 --- a/src/operator/LeakyReLUImpl.cpp +++ b/src/operator/LeakyReLUImpl.cpp @@ -10,9 +10,9 @@ ********************************************************************************/ #include <cassert> -#include <numeric> -#include <chrono> -#include <thread> +#include <chrono> // std::chrono::milliseconds +#include <numeric> // std::accumulate +#include <thread> // std::this_thread::sleep_for #include "aidge/operator/LeakyReLU.hpp" @@ -38,7 +38,7 @@ Aidge::NbElts_t Aidge::LeakyReLUImpl_cpu::getNbRequiredProtected(const Aidge::IO return 0; } -Aidge::NbElts_t Aidge::LeakyReLUImpl_cpu::getRequiredMemory(const Aidge::IOIndex_t outputIdx, const std::vector<Aidge::DimSize_t> &inputsSize) const { +Aidge::NbElts_t Aidge::LeakyReLUImpl_cpu::getRequiredMemory(__attribute__((unused)) const Aidge::IOIndex_t outputIdx, __attribute__((unused)) const std::vector<Aidge::DimSize_t> &inputsSize) const { const auto& outputDims = mOp.getOutput(0)->dims(); return std::accumulate(outputDims.begin(), outputDims.end(), static_cast<NbElts_t>(1), std::multiplies<NbElts_t>()); diff --git a/src/operator/ProducerImpl.cpp b/src/operator/ProducerImpl.cpp index b2abcdf3facb5c119957b4c3bc9ae33e9e8ddb4a..69e4ba281cf8ddf7fb273da6508a42f03b5074c8 100644 --- a/src/operator/ProducerImpl.cpp +++ b/src/operator/ProducerImpl.cpp @@ -10,7 +10,7 @@ ********************************************************************************/ #include <cassert> -#include <numeric> +#include <numeric> // std::accumulate #include <vector> #include "aidge/data/Tensor.hpp" @@ -42,7 +42,7 @@ std::size_t Aidge::ProducerImpl_cpu::getNbRequiredProtected( std::size_t Aidge::ProducerImpl_cpu::getRequiredMemory( - const IOIndex_t outputIdx, const std::vector<DimSize_t> &inputsSize) const + __attribute__((unused)) const IOIndex_t outputIdx, __attribute__((unused)) const std::vector<DimSize_t> &inputsSize) const { // Requires the whole tensors, regardless of available data on inputs assert(outputIdx == 0 && "operator has only one output"); diff --git a/src/operator/ReLUImpl.cpp b/src/operator/ReLUImpl.cpp index 90763a918bca3bd80f9b1d5a8b22417bafb91427..9cbf0efe07bc15791e3bfcc28d86e1463d908def 100644 --- a/src/operator/ReLUImpl.cpp +++ b/src/operator/ReLUImpl.cpp @@ -10,9 +10,9 @@ ********************************************************************************/ #include <cassert> -#include <numeric> -#include <chrono> -#include <thread> +#include <chrono> // std::chrono::milliseconds +#include <numeric> // std::accumulate +#include <thread> // std::this_thread::sleep_for #include "aidge/operator/ReLU.hpp" @@ -38,7 +38,7 @@ Aidge::NbElts_t Aidge::ReLUImpl_cpu::getNbRequiredProtected(const Aidge::IOIndex return 0; } -Aidge::NbElts_t Aidge::ReLUImpl_cpu::getRequiredMemory(const Aidge::IOIndex_t outputIdx, const std::vector<Aidge::DimSize_t> &inputsSize) const { +Aidge::NbElts_t Aidge::ReLUImpl_cpu::getRequiredMemory(__attribute__((unused)) const Aidge::IOIndex_t outputIdx, __attribute__((unused)) const std::vector<Aidge::DimSize_t> &inputsSize) const { const auto& outputDims = std::static_pointer_cast<Tensor>(mOp.getOutput(0))->dims(); return std::accumulate(outputDims.begin(), outputDims.end(), static_cast<NbElts_t>(1), std::multiplies<NbElts_t>()); diff --git a/src/operator/SoftmaxImpl.cpp b/src/operator/SoftmaxImpl.cpp index 860ee7913df44e26e861d228e29831e1b90cdf52..b0f978c9e928209d843aec6795f77e92ff57b263 100644 --- a/src/operator/SoftmaxImpl.cpp +++ b/src/operator/SoftmaxImpl.cpp @@ -10,9 +10,9 @@ ********************************************************************************/ #include <cassert> -#include <numeric> -#include <chrono> -#include <thread> +#include <chrono> // std::chrono::milliseconds +#include <numeric> // std::accumulate +#include <thread> // std::this_thread::sleep_for #include "aidge/operator/Softmax.hpp" @@ -38,7 +38,7 @@ Aidge::NbElts_t Aidge::SoftmaxImpl_cpu::getNbRequiredProtected(const Aidge::IOIn return 0; } -Aidge::NbElts_t Aidge::SoftmaxImpl_cpu::getRequiredMemory(const Aidge::IOIndex_t outputIdx, const std::vector<Aidge::DimSize_t> &inputsSize) const { +Aidge::NbElts_t Aidge::SoftmaxImpl_cpu::getRequiredMemory(__attribute__((unused)) const Aidge::IOIndex_t outputIdx, __attribute__((unused)) const std::vector<Aidge::DimSize_t> &inputsSize) const { const auto& outputDims = std::static_pointer_cast<Tensor>(mOp.getOutput(0))->dims(); return std::accumulate(outputDims.begin(), outputDims.end(), static_cast<NbElts_t>(1), std::multiplies<NbElts_t>());