diff --git a/src/operator/Slice.cpp b/src/operator/Slice.cpp index f15a150f36402d0e3b7ae059084b7dd0b556919d..3cc2de686435a304326e2a4a60dad6c12a50349c 100644 --- a/src/operator/Slice.cpp +++ b/src/operator/Slice.cpp @@ -147,7 +147,7 @@ bool Aidge::Slice_Op::forwardDims(bool allowDataDependency) { static_cast<DimSize_t>(this->ends()[i] + static_cast<DimSize_t>(getInput(0)->dims()[axis])); const std::int64_t step = this->steps()[i]; - AIDGE_ASSERT(step != 0, "Slice_Op: Step ({}) must have a non-zero value on axis {}!", this->template getAttr<SliceAttr::Steps>(), axis); + AIDGE_ASSERT(step != 0, "Slice_Op: Step ({}) must have a non-zero value on axis {}!", this->steps(), axis); if(step * (static_cast<int64_t>(end) - static_cast<int64_t>(start)) < 0) { if(step < 0) { AIDGE_THROW_OR_ABORT(std::runtime_error, "{}: Step ({}) is negative, we must have End ({}) < Start ({}) on axis {}", type(), step, end, start, axis);