MLBEDSW-10419 Fix resnet_v2_50_int8 performance regression
- Generic solution to reshape to 3D and always pad in W-dimension was causing performance regressions due to limitations in utilizing NHCWB16 format. With this change the reshape solution is only used when necessary.
- Also cleaned up the RewritePad function a bit and made it so MemoryCopy is always used for applying the padding regardless of NPU. Previously elementwise NOT was used for Ethos-U85.
Change-Id: I813d04caa165da4eb9586d220a0ff1554bb07083 Signed-off-by: Jacob Bohlin jacob.bohlin@arm.com