diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2017-12-11 17:49:18 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:42:33 +0000 |
commit | 284c2045de0811f423a44d2e665f4f45a9e702fa (patch) | |
tree | 4114492054252d4a78fd03be8d86990c34d2d922 /src/graph/nodes/DepthwiseConvolutionLayer.cpp | |
parent | 5962f137e4d0291fee336967b333e2bbc7ae3f8a (diff) | |
download | ComputeLibrary-284c2045de0811f423a44d2e665f4f45a9e702fa.tar.gz |
COMPMID-556: Allocate trainable data tensor after configuration
Change-Id: I8a5fd2418dd104a06a0972abf088f64d7c2796d3
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/112779
Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Diffstat (limited to 'src/graph/nodes/DepthwiseConvolutionLayer.cpp')
-rw-r--r-- | src/graph/nodes/DepthwiseConvolutionLayer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/graph/nodes/DepthwiseConvolutionLayer.cpp b/src/graph/nodes/DepthwiseConvolutionLayer.cpp index ceac2a2def..b4598538c1 100644 --- a/src/graph/nodes/DepthwiseConvolutionLayer.cpp +++ b/src/graph/nodes/DepthwiseConvolutionLayer.cpp @@ -72,6 +72,9 @@ std::unique_ptr<arm_compute::IFunction> DepthwiseConvolutionLayer::instantiate_n node_ctx.add_parameter<PadStrideInfo>("ConvolutionInfo", _conv_info); node_ctx.add_parameter<bool>("Optimized3x3", _opt3x3); + // Configure operation + auto func = OperationRegistry::get().find_operation(OperationType::DepthwiseConvolutionLayer, _target_hint)->configure(node_ctx); + // Fill tensors if(!weights_is_loaded) { @@ -83,5 +86,5 @@ std::unique_ptr<arm_compute::IFunction> DepthwiseConvolutionLayer::instantiate_n } // Get function - return OperationRegistry::get().find_operation(OperationType::DepthwiseConvolutionLayer, _target_hint)->configure(node_ctx); + return func; } |