Skip to content
Snippets Groups Projects
Commit 7df87c11 authored by Houssem ROUIS's avatar Houssem ROUIS Committed by Maxence Naud
Browse files

fix computeOutputDims

parent 1a0d54d5
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,10 @@ bool Aidge::Reshape_Op::forwardDims(bool /*allowDataDependency*/) {
dimSize = 1;
negativeIndex = static_cast<DimIdx_t>(i);
}
else if (dimSize == 0)
{
dimSize = getInput(0) -> dims()[i];
}
outDims.push_back(static_cast<DimSize_t>(dimSize));
outSize *= static_cast<DimSize_t>(dimSize);
}
......
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