|
25.11
|
#include <INetwork.hpp>
Public Member Functions | |
| Status | PrintGraph () |
| Status | SerializeToDot (std::ostream &stream) const |
| arm::pipe::ProfilingGuid | GetGuid () const |
| size_t | GetNumInputs () const |
| size_t | GetNumOutputs () const |
| void | ExecuteStrategy (IStrategy &strategy) const |
| IOptimizedNetwork (const IOptimizedNetwork &other, const ModelOptions &modelOptions) | |
| Creates a copy of the IOptimizedNetwork. | |
| IOptimizedNetwork (std::unique_ptr< Graph > graph) | |
| IOptimizedNetwork (std::unique_ptr< OptimizedNetworkImpl > impl) | |
| ~IOptimizedNetwork () | |
| const std::shared_ptr< IProfiler > & | GetProfiler () const |
Static Public Member Functions | |
| static void | Destroy (IOptimizedNetwork *network) |
Protected Member Functions | |
| IOptimizedNetwork (std::unique_ptr< Graph > graph, const ModelOptions &modelOptions) | |
Protected Attributes | |
| std::unique_ptr< OptimizedNetworkImpl > | pOptimizedNetworkImpl |
Friends | |
| class | LoadedNetwork |
| Graph & | GetGraphForTesting (IOptimizedNetwork *optNetPtr) |
| ModelOptions & | GetModelOptionsForTesting (IOptimizedNetwork *optNetPtr) |
| IOptimizedNetworkPtr | Optimize (const INetwork &inNetwork, const std::vector< BackendId > &backendPreferences, const IDeviceSpec &deviceSpec, const OptimizerOptionsOpaque &options=OptimizerOptionsOpaque(), Optional< std::vector< std::string > & > messages=EmptyOptional()) |
| Create an optimized version of the network. | |
| IOptimizedNetworkPtr | Optimize (const Graph &inGraph, const std::vector< BackendId > &backendPreferences, const IDeviceSpec &deviceSpec, const OptimizerOptionsOpaque &options, Optional< std::vector< std::string > & > messages=EmptyOptional()) |
| Create an optimized version of the network. | |
Definition at line 902 of file INetwork.hpp.
| IOptimizedNetwork | ( | const IOptimizedNetwork & | other, |
| const ModelOptions & | modelOptions ) |
Creates a copy of the IOptimizedNetwork.
The IOptimizedNetwork will not be reoptimized, the provided ModelOptions will only be used when creating a LoadedNetwork.
Definition at line 692 of file Network.cpp.
References IOptimizedNetwork(), and pOptimizedNetworkImpl.
Referenced by Destroy(), GetGraphForTesting, GetModelOptionsForTesting, IOptimizedNetwork(), LoadedNetwork, and Optimize.
| IOptimizedNetwork | ( | std::unique_ptr< Graph > | graph | ) |
Definition at line 695 of file Network.cpp.
References pOptimizedNetworkImpl.
| IOptimizedNetwork | ( | std::unique_ptr< OptimizedNetworkImpl > | impl | ) |
Definition at line 698 of file Network.cpp.
References pOptimizedNetworkImpl.
|
default |
|
protected |
Definition at line 701 of file Network.cpp.
References pOptimizedNetworkImpl.
|
static |
Definition at line 706 of file Network.cpp.
References IOptimizedNetwork().
Referenced by Optimize.
| void ExecuteStrategy | ( | IStrategy & | strategy | ) | const |
Definition at line 3277 of file Network.cpp.
References pOptimizedNetworkImpl.
| arm::pipe::ProfilingGuid GetGuid | ( | ) | const |
Definition at line 726 of file Network.cpp.
References pOptimizedNetworkImpl.
| size_t GetNumInputs | ( | ) | const |
Definition at line 731 of file Network.cpp.
References pOptimizedNetworkImpl.
| size_t GetNumOutputs | ( | ) | const |
Definition at line 736 of file Network.cpp.
References pOptimizedNetworkImpl.
| const std::shared_ptr< IProfiler > & GetProfiler | ( | ) | const |
Definition at line 721 of file Network.cpp.
References pOptimizedNetworkImpl.
| Status PrintGraph | ( | ) |
Definition at line 711 of file Network.cpp.
References pOptimizedNetworkImpl.
| Status SerializeToDot | ( | std::ostream & | stream | ) | const |
Definition at line 716 of file Network.cpp.
References pOptimizedNetworkImpl.
|
friend |
Definition at line 49 of file TestUtils.cpp.
References IOptimizedNetwork(), and pOptimizedNetworkImpl.
|
friend |
Definition at line 54 of file TestUtils.cpp.
References IOptimizedNetwork(), and pOptimizedNetworkImpl.
|
friend |
Definition at line 927 of file INetwork.hpp.
References IOptimizedNetwork(), and LoadedNetwork.
Referenced by LoadedNetwork.
|
friend |
Create an optimized version of the network.
| inGraph | Graph to be optimized. |
| backendPreferences | The choice of the backend ordered by user preferences. |
| deviceSpec | DeviceSpec object as queried from the runtime. See IRuntime::GetDeviceSpec() |
| messages | If there are failures or warnings a string describing same will be added to the vector |
| options | OptimizerOptions object with optimizer configuration options |
Definition at line 2026 of file Network.cpp.
References Graph::AddCompatibilityLayers(), armnn::ApplyBackendOptimizations(), ARMNN_LOG, ARMNN_SCOPED_PROFILING_EVENT, armnn::AssignBackends(), armnn::BackendRegistryInstance(), Graph::begin(), armnn::CheckFastMathSupport(), armnn::CheckFp16Support(), armnnUtils::Filesystem::CreateDirectory(), armnn::CreateSupportedBackends(), armnn::debug, Destroy(), Graph::end(), BackendSettings::GetAvailablePreferredBackends(), BackendRegistry::GetBackendIds(), OptimizerOptionsOpaque::GetDebugEnabled(), OptimizerOptionsOpaque::GetDebugToFileEnabled(), OptimizerOptionsOpaque::GetExportEnabled(), OptimizerOptionsOpaque::GetImportEnabled(), ProfilerManager::GetInstance(), BackendRegistry::GetMappedGpuBackends(), OptimizerOptionsOpaque::GetModelOptions(), Graph::GetProfiler(), OptimizerOptionsOpaque::GetProfilingEnabled(), OptimizerOptionsOpaque::GetReduceFp32ToBf16(), OptimizerOptionsOpaque::GetReduceFp32ToFp16(), OptimizerOptionsOpaque::GetShapeInferenceMethod(), armnn::InferAndValidate, Graph::InferTensorInfos(), armnn::info, IOptimizedNetwork(), armnn::IsTfLiteTurboModel(), OptimizationResult::m_Error, BackendSettings::m_SupportedBackends, armnn::MakeOptimizations(), Optimizer::Pass(), pOptimizedNetworkImpl, ProfilerManager::RegisterProfiler(), armnn::ReportError(), armnn::SelectTensorHandleStrategy(), OptimizerOptionsOpaque::ToString(), armnn::Undefined, armnn::ValidateOnly, Graph::VerifyConstantLayerSetTensorInfo(), armnn::warning, and Exception::what().
|
friend |
Create an optimized version of the network.
| network | INetwork description of the network to be optimized. |
| backendPreferences | The choice of the backend ordered by user preferences. |
| deviceSpec | DeviceSpec object as queried from the runtime. See IRuntime::GetDeviceSpec() |
| messages | If there are failures or warnings a string describing same will be added to the vector |
| options | OptimizerOptions object with optimizer configuration options |
Definition at line 2287 of file Network.cpp.
|
protected |
Definition at line 944 of file INetwork.hpp.
Referenced by ExecuteStrategy(), GetGraphForTesting, GetGuid(), GetModelOptionsForTesting, GetNumInputs(), GetNumOutputs(), GetProfiler(), IOptimizedNetwork(), IOptimizedNetwork(), IOptimizedNetwork(), IOptimizedNetwork(), Optimize, PrintGraph(), and SerializeToDot().