Activation using rectified linear unit or parameterized rectified linear unit.
More...
|
| activation (const primitive_id &id, const primitive_id &input, cldnn_activation_func activation_func, cldnn_activation_additional_params additional_params={ 0.f, 0.f }, const padding &output_padding=padding()) |
| Constructs Relu primitive. More...
|
|
| activation (const primitive_id &id, const primitive_id &input, const primitive_id &additional_params_input, cldnn_activation_func activation_func, const padding &output_padding=padding()) |
| Constructs activation with input per feature. More...
|
|
| activation (const dto *dto) |
| Constructs a copy from basic C API cldnn_activation_desc.
|
|
const cldnn_primitive_desc * | get_dto () const override |
| Returns pointer to a C API primitive descriptor casted to cldnn_primitive_desc.
|
|
| primitive (const primitive_type_id &type, const primitive_id &id, const std::vector< primitive_id > &input, const padding &output_padding=padding()) |
|
| primitive (const cldnn_primitive_desc *dto) |
| Constructs a copy from basic C API cldnn_primitive_desc.
|
|
std::vector< std::reference_wrapper< primitive_id > > | dependecies () |
| Returns references to all primitive ids on which this primitive depends - inputs, weights, biases, etc.
|
|
std::vector< primitive_id > | dependecies () const |
| Returns copy of all primitive ids on which this primitive depends - inputs, weights, biases, etc.
|
|
| operator primitive_id () const |
| Implicit conversion to primiitive id.
|
|
Activation using rectified linear unit or parameterized rectified linear unit.
Can get one negative slope or negative slope per channel.
- Algorithm:
- out(i,x,y) = max(0, in(i,x,y)) + slope(i) * min(0, in(i,x,y))
- Where:
- out(i,x,y) : value at x, y from i-th feature map after activation.
- in(i,x,y) : value at x, y from i-th feature map before activation.
- slope(i) : the slope value of the i-th feature map (can be shared across channels or one slope per channel).
Definition at line 39 of file activation.hpp.