before checking if requested backends are valid
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I5274d27a50fa10f0c86275140acec7bdc681a24f
}
string modelPath = modelDir + "cifar10_full_iter_60000.caffemodel";
+ // Create runtime
+ // This will also load dynamic backend in case that the dynamic backend path is specified
+ armnn::IRuntime::CreationOptions options;
+ armnn::IRuntimePtr runtime(armnn::IRuntime::Create(options));
+
// Check if the requested backend are all valid
std::string invalidBackends;
if (!CheckRequestedBackendsAreValid(computeDevice, armnn::Optional<std::string&>(invalidBackends)))
return EXIT_FAILURE;
}
- // Create runtime
- armnn::IRuntime::CreationOptions options;
- armnn::IRuntimePtr runtime(armnn::IRuntime::Create(options));
-
// Loads networks.
armnn::Status status;
struct Net