Skip to content
Snippets Groups Projects
Commit c1362663 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Fixed bug unrelated to the MR

parent f1afe398
No related branches found
No related tags found
No related merge requests found
...@@ -86,15 +86,21 @@ public: ...@@ -86,15 +86,21 @@ public:
if (!getInput(i)) { if (!getInput(i)) {
AIDGE_THROW_OR_ABORT(std::runtime_error, "Every input should be associated with a Tensor"); AIDGE_THROW_OR_ABORT(std::runtime_error, "Every input should be associated with a Tensor");
} }
associated &= (getInput(i)->nbDims() == firstInputNbDims);
for (DimSize_t dim = 0; dim < firstInputNbDims; ++dim) { if (getInput(i)->nbDims() == firstInputNbDims) {
if (dim == getAttr<ConcatAttr::Axis>()) { for (DimSize_t dim = 0; dim < firstInputNbDims; ++dim) {
outputDims[dim] += getInput(i)->dims()[dim]; if (dim == getAttr<ConcatAttr::Axis>()) {
} outputDims[dim] += getInput(i)->dims()[dim];
else { }
associated &= (getInput(i)->dims()[dim] == outputDims[dim]); else {
associated &= (getInput(i)->dims()[dim] == outputDims[dim]);
}
} }
} }
else {
associated = false;
break;
}
} }
if (associated) { if (associated) {
getOutput(0)->resize(outputDims); getOutput(0)->resize(outputDims);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment