diff options
author | Nattapat Chaimanowong <nattapat.chaimanowong@arm.com> | 2019-02-21 17:05:39 +0000 |
---|---|---|
committer | Les Bell <les.bell@arm.com> | 2019-02-22 09:03:23 +0000 |
commit | c64ea9fdf975a65e9a1dd67b44469add270d6f8b (patch) | |
tree | 57cfba7e745d2acd7e40b65eea4dd043a8203294 /src/backends | |
parent | b5b9bdf14d032f3133d5a76835742bbc8291494d (diff) | |
download | armnn-c64ea9fdf975a65e9a1dd67b44469add270d6f8b.tar.gz |
IVGCVSW-2588 Update README files for 19.02
*Also update related Support.md files
Change-Id: If832980fdebb136ab02333d99512fd39b9093b2b
Signed-off-by: Nattapat Chaimanowong <nattapat.chaimanowong@arm.com>
Diffstat (limited to 'src/backends')
-rw-r--r-- | src/backends/README.md | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/backends/README.md b/src/backends/README.md index 60e4d0baa7..c269ea08da 100644 --- a/src/backends/README.md +++ b/src/backends/README.md @@ -116,8 +116,12 @@ The interface functions to be implemented are: virtual IBackendContextPtr CreateBackendContext(const IRuntime::CreationOptions&) const = 0; virtual Optimizations GetOptimizations() const = 0; virtual ILayerSupportSharedPtr GetLayerSupport() const = 0; + virtual SubGraphUniquePtr OptimizeSubGraph(const SubGraph& subGraph, bool& optimizationAttempted) const = 0; ``` +Note that ```GetOptimizations()``` has been deprecated. +The method ```OptimizeSubGraph(...)``` should be used instead to specific optimizations to a given sub-graph. + The ArmNN framework then creates instances of the IBackendInternal interface with the help of the [BackendRegistry](backendsCommon/BackendRegistry.hpp) singleton. @@ -186,9 +190,12 @@ mechanism: ## The Optimizations -The backends may choose to implement backend-specific optimizations. This is supported through the ```GetOptimizations()``` -method of the IBackendInternal interface. This function may return a vector of optimization objects and the optimizer -runs these after all general optimization is performed on the network. +The backends may choose to implement backend-specific optimizations. +This is supported through the method ```OptimizeSubGraph(...)``` to the backend interface +that allows the backends to apply their specific optimizations to a given sub-grah. + +The way backends had to provide a list optimizations to the Optimizer (through the ```GetOptimizations()``` method) +is still in place for backward compatibility, but it's now considered deprecated and will be remove in a future release. ## The IBackendContext interface |