diff options
Diffstat (limited to 'src/runtime/GLES_COMPUTE/functions')
-rw-r--r-- | src/runtime/GLES_COMPUTE/functions/GCActivationLayer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/runtime/GLES_COMPUTE/functions/GCActivationLayer.cpp b/src/runtime/GLES_COMPUTE/functions/GCActivationLayer.cpp index 207e8cef56..0700b2b400 100644 --- a/src/runtime/GLES_COMPUTE/functions/GCActivationLayer.cpp +++ b/src/runtime/GLES_COMPUTE/functions/GCActivationLayer.cpp @@ -29,14 +29,16 @@ namespace arm_compute { -GCActivationLayer::GCActivationLayer(void *ctx) +GCActivationLayer::GCActivationLayer(GCRuntimeContext *ctx) + : IGCSimpleFunction(ctx) { - ARM_COMPUTE_UNUSED(ctx); } void GCActivationLayer::configure(IGCTensor *input, IGCTensor *output, ActivationLayerInfo act_info) { - auto k = arm_compute::support::cpp14::make_unique<GCActivationLayerKernel>(); + auto core_ctx = _ctx ? _ctx->core_runtime_context() : /* Legacy */ nullptr; + + auto k = arm_compute::support::cpp14::make_unique<GCActivationLayerKernel>(core_ctx); k->configure(input, output, act_info); _kernel = std::move(k); } |