/// @param network INetwork description of the network to be optimized.
/// @param backendPreferences The choice of the backend ordered by user preferences.
/// @param deviceSpec DeviceSpec object as queried from the runtime. See IRuntime::GetDeviceSpec()
-/// @param errMessages if there are failures or warnings a string describing same will be added to the vector
+/// @param messages If there are failures or warnings a string describing same will be added to the vector
/// @param options OptimizerOptions object with optimizer configuration options
/// @return An IOptimizedNetworkPtr interface to the optimized network, throws an exception derived from
/// armnn::Exception if process fails.
const std::vector<BackendId>& backendPreferences,
const IDeviceSpec& deviceSpec,
const OptimizerOptions& options = OptimizerOptions(),
- Optional<std::vector<std::string>&> errMessages = EmptyOptional());
+ Optional<std::vector<std::string>&> messages = EmptyOptional());
} //namespace armnn
const std::vector<BackendId>& backendPreferences,
const IDeviceSpec& deviceSpec,
const OptimizerOptions& options,
- Optional<std::vector<std::string>&> errMessages)
+ Optional<std::vector<std::string>&> messages)
{
if (backendPreferences.empty())
{
std::stringstream failureMsg;
failureMsg << "None of the preferred backends " << backendPreferences
<< " are supported. Current platform provides " << backendSettings.m_SupportedBackends;
- ReportError(failureMsg.str(), errMessages);
+ ReportError(failureMsg.str(), messages);
return IOptimizedNetworkPtr(nullptr, &IOptimizedNetwork::Destroy);
}
backendSettings,
firstLayer,
lastLayer,
- errMessages);
+ messages);
if (assignBackendsResult.m_Error)
{
// Failed to assign a backend to each layer
OptimizationResult backendOptimizationResult = ApplyBackendOptimizations(optNetObjPtr,
backendSettings,
backends,
- errMessages);
+ messages);
if (backendOptimizationResult.m_Error)
{
// Failed to apply the backend-specific optimizations
OptimizationResult strategyResult = SelectTensorHandleStrategy(optGraph,
backends,
tensorHandleFactoryRegistry,
- errMessages);
+ messages);
if (strategyResult.m_Error)
{
// Failed to apply the backend-specific optimizations