Performs elementwise operations (sum, subtract, max or product) on two input primitives Also supports built-in Relu activation available by setting it in arguments. .
More...
|
| eltwise (const primitive_id &id, const primitive_id &input, const primitive_id &input2, eltwise_mode mode, bool with_activation=false, float activation_slp=0.0f, const padding &output_padding=padding()) |
| Constructs eltwise primitive. More...
|
|
| eltwise (const dto *dto) |
| Constructs a copy from C API cldnn_eltwise_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.
|
|
Performs elementwise operations (sum, subtract, max or product) on two input primitives Also supports built-in Relu activation available by setting it in arguments. .
- both inputs have to have equal sizes in all dimensions
- format of both inputs has to be the same
Definition at line 49 of file eltwise.hpp.