* Removes workaround which handled null dstFactory
when NEON import was disabled, and now handles
this in the correct way.
Signed-off-by: James Conroy <james.conroy@arm.com>
Change-Id: Ief42b3c52d018f0fa71be4d4d37516f2caad1e0d
{
ITensorHandleFactory* dstFactory = registry.GetFactory(pref);
- // Handles some cases where dstFactory is null when Neon memory import is disabled
+ // Handles cases when a destPref is not listed in TensorHandleFactoryRegistry
if (!dstFactory) {
- return EdgeStrategy::CopyToTarget;
+ continue;
}
if ((dstFactory->GetImportFlags() & srcFactory->GetExportFlags()) != 0)
for (auto&& pref : dstPrefs)
{
ITensorHandleFactory* dstFactory = registry.GetFactory(pref);
- if (dstFactory->SupportsMapUnmap())
+ if (dstFactory && dstFactory->SupportsMapUnmap())
{
return EdgeStrategy::CopyToTarget;
}