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

Fixed bug with format

parent 3fce297b
No related branches found
No related tags found
2 merge requests!318[Upd] release verision 0.5.0,!290[Add] support for auto-concatenation and Fix multiple adaptToBackend() issues
Pipeline #62633 passed
......@@ -722,12 +722,12 @@ Aidge::MemoryManager Aidge::Scheduler::generateMemoryAutoConcat(bool incProducer
const auto parentOp = std::static_pointer_cast<OperatorTensor>(concatParent->getOperator());
const auto parentRequiredSize = parentOp->getRequiredMemory(outputIdx, {});
const auto parentOutputDims = (parentOp->getOutput(outputIdx)) ? parentOp->getOutput(outputIdx)->dims() : std::vector<DimSize_t>();
const auto parentOutputFormat = (parentOp->getOutput(outputIdx)) ? parentOp->getOutput(outputIdx)->dataFormat() : DataFormat::Default;
// By default, specifies a fully monolithic memory block
std::size_t parentSize = parentRequiredSize.data;
if (parentOutputDims.size() > 3) {
// If it is possible, assume a NCHW layout
if (parentOutputFormat == DataFormat::NHWC) {
parentSize = parentOutputDims.end()[-3];
}
......
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