diff options
author | Matthew Bentham <matthew.bentham@arm.com> | 2022-02-11 08:29:42 +0000 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2022-02-11 12:29:03 +0000 |
commit | 79bb6531358d5a780e8e86bce99fd39ae847c2f4 (patch) | |
tree | c818b67a263194947ba2181aa3b42de7ff86fc6e /delegate/src/DelegateOptions.cpp | |
parent | bfa767ca56f9776e7dd3eecb4025cfeed87f9936 (diff) | |
download | armnn-79bb6531358d5a780e8e86bce99fd39ae847c2f4.tar.gz |
Fix unit test where NeonMemoryManager was used instead of RefMemoryManager
Although the Neon and Ref backends can use each other's TensorHandles,
their TensorHandleFactories can't use each other's MemoryManagers.
Incorrectly passing the NeonMemoryManager to the RefTensorHandleFactory
in unit test utility code resulted in an incorrect static_pointer_cast
and a warning from the Undefined Behaviour Sanitizer.
This change fixes the test code, and replaces use of static_pointer_cast
with armnn::PolymorphicPointerDowncast which will check that the cast is
legal in debug builds.
Also, remove MockWorkloadFactoryHelper.hpp as it is unused.
Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Change-Id: I2b425e86fccacd7cc5ff186521fc6e53e7e50c77
Diffstat (limited to 'delegate/src/DelegateOptions.cpp')
0 files changed, 0 insertions, 0 deletions