[Fix] Tensor::setDataFormat handling of DataFormat::Default
Context
Implement back the behaviour of setDataFormat lost in !314 (merged) that transposing Tensor from/to DataFormat::Default does not lead to any data transposition. Only the dataFormat is changed.
Major modification
- upd: in
DataFormat.hpp
, change 'getDataFormatTranspose' name to 'getPermutationMapping' - upd: use X-macro to keep DataFormat enum, string value, permutation with NCHW and description in synch
- add: number of dimensions information to X-macro
- upd: change 'DataFormatTransposeDict' array to 'permutationFromNCHW' and move it to a static function 'getPermutationFromNCHW'
- fix: do not transpose data in Tensor if current or new format is Default
Edited by Maxence Naud
Merge request reports
Activity
Filter activity
changed milestone to %aidge v0.6.0
added EnhancementStructure 🏗 Fix 🔥🔥 StatusReview Ready TopicTensor labels
assigned to @pineapple
mentioned in merge request aidge_backend_cpu!137 (merged)
enabled an automatic merge when all merge checks for 09064c35 pass
mentioned in commit d012e2d4
Please register or sign in to reply