diff --git a/include/aidge/hook/outputRange.hpp b/include/aidge/hook/outputRange.hpp index 3473145f3bce86e6f15452e2d70c6cf1082a4253..75462435d08008fbbc49003c7ab3be7ad9a56e3b 100644 --- a/include/aidge/hook/outputRange.hpp +++ b/include/aidge/hook/outputRange.hpp @@ -35,7 +35,7 @@ public: void call() override final { //std::cout << "call() outputRange hook " << std::endl; //this assumes there is only 1 output possible - std::shared_ptr<Tensor> tensor = std::static_pointer_cast<Tensor>(this->mOperator->getOutput(0)); + std::shared_ptr<Tensor> tensor = mOperator->getOutput(0); //tensor->print(); //std::cout << "call() outputRange hook : tensor printed" << std::endl; float max_value = 0.;