Skip to content
Snippets Groups Projects
Commit 243c343f authored by Wissam Boussella's avatar Wissam Boussella
Browse files

remove magic number

parent 106d104b
No related branches found
No related tags found
No related merge requests found
Pipeline #68348 canceled
...@@ -82,7 +82,7 @@ bool Aidge::Transpose_Op::forwardDims(bool /*allowDataDependency*/) { ...@@ -82,7 +82,7 @@ bool Aidge::Transpose_Op::forwardDims(bool /*allowDataDependency*/) {
// Set the data format of the output tensor // Set the data format of the output tensor
DataFormatTranspose outputDimsArray; DataFormatTranspose outputDimsArray;
std::copy_n(outputDimsOrder().begin(), 5, outputDimsArray.begin()); std::copy_n(outputDimsOrder().begin(), outputDimsOrder().size(), outputDimsArray.begin());
mOutputs[0]->setDataFormat(getTransposedDataFormat(getInput(0)->dataFormat(), outputDimsArray)); mOutputs[0]->setDataFormat(getTransposedDataFormat(getInput(0)->dataFormat(), outputDimsArray));
return true; return true;
......
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