Basic function to run GCActivationLayerKernel.
More...
#include <GCActivationLayer.h>
Basic function to run GCActivationLayerKernel.
- Note
- The function simulates an activation layer with the specified activation function.
- Deprecated:
- This function is deprecated and is intended to be removed in 21.05 release
Definition at line 42 of file GCActivationLayer.h.
◆ GCActivationLayer() [1/3]
Constructor.
- Parameters
-
[in,out] | ctx | Runtime context to be used by the function |
Definition at line 31 of file GCActivationLayer.cpp.
IGCSimpleFunction(GCRuntimeContext *ctx=nullptr)
Default Constructor.
◆ GCActivationLayer() [2/3]
Prevent instances of this class from being copied (As this class contains pointers)
◆ GCActivationLayer() [3/3]
Default move constructor.
◆ configure()
Set the input and output tensor.
- Note
- If the output tensor is a nullptr, the activation function will be performed in-place
- Parameters
-
[in,out] | input | Source tensor. In case of output tensor = nullptr, this tensor will store the result of the activation function. Data types supported: F16/F32. |
[out] | output | Destination tensor. Data type supported: same as input |
[in] | act_info | Activation layer parameters. |
Definition at line 36 of file GCActivationLayer.cpp.
Referenced by GCDepthwiseConvolutionLayer3x3::configure(), and GCConvolutionLayer::configure().
38 auto core_ctx = _ctx ? _ctx->core_runtime_context() :
nullptr;
40 auto k = std::make_unique<GCActivationLayerKernel>(core_ctx);
41 k->configure(
input, output, act_info);
42 _kernel = std::move(k);
◆ operator=() [1/2]
Prevent instances of this class from being copied (As this class contains pointers)
◆ operator=() [2/2]
Default move assignment operator.
The documentation for this class was generated from the following files: