aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/graph/nodes/BatchNormalizationLayer.cpp5
-rw-r--r--src/graph/nodes/DepthwiseConvolutionLayer.cpp5
-rw-r--r--src/graph/nodes/FullyConnectedLayer.cpp5
3 files changed, 12 insertions, 3 deletions
diff --git a/src/graph/nodes/BatchNormalizationLayer.cpp b/src/graph/nodes/BatchNormalizationLayer.cpp
index 927ce5e728..7851aa5b9e 100644
--- a/src/graph/nodes/BatchNormalizationLayer.cpp
+++ b/src/graph/nodes/BatchNormalizationLayer.cpp
@@ -78,6 +78,9 @@ std::unique_ptr<arm_compute::IFunction> BatchNormalizationLayer::instantiate_nod
node_ctx.add_output(out);
node_ctx.add_parameter<float>("epsilon", _epsilon);
+ // Configure operation
+ auto func = OperationRegistry::get().find_operation(OperationType::BatchNormalizationLayer, _target_hint)->configure(node_ctx);
+
// Fill tensors
if(!mean_is_loaded)
{
@@ -97,5 +100,5 @@ std::unique_ptr<arm_compute::IFunction> BatchNormalizationLayer::instantiate_nod
}
// Get function
- return OperationRegistry::get().find_operation(OperationType::BatchNormalizationLayer, _target_hint)->configure(node_ctx);
+ return func;
} \ No newline at end of file
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;
}
diff --git a/src/graph/nodes/FullyConnectedLayer.cpp b/src/graph/nodes/FullyConnectedLayer.cpp
index 41f679b4ec..219e0f9a93 100644
--- a/src/graph/nodes/FullyConnectedLayer.cpp
+++ b/src/graph/nodes/FullyConnectedLayer.cpp
@@ -88,6 +88,9 @@ std::unique_ptr<arm_compute::IFunction> FullyConnectedLayer::instantiate_node(Gr
node_ctx.add_input(_biases.set_target(_target_hint));
node_ctx.add_output(out);
+ // Configure operation
+ auto func = OperationRegistry::get().find_operation(OperationType::FullyConnectedLayer, _target_hint)->configure(node_ctx);
+
// Fill biases
if(!weights_are_loaded)
{
@@ -99,5 +102,5 @@ std::unique_ptr<arm_compute::IFunction> FullyConnectedLayer::instantiate_node(Gr
}
// Get function
- return OperationRegistry::get().find_operation(OperationType::FullyConnectedLayer, _target_hint)->configure(node_ctx);
+ return func;
}