19 #include "../C/eltwise.h" 20 #include "primitive.hpp" 51 CLDNN_DECLATE_PRIMITIVE(
eltwise)
66 float activation_slp = 0.0f,
84 throw std::invalid_argument(
"eltiwise dto should containt exactly two inputs");
95 void update_dto(
dto&
dto)
const override
cldnn_eltwise_mode
Select mode for eltwise layer ( cldnn_eltwise_desc ).
Represents data padding information.
eltwise(const dto *dto)
Constructs a copy from C API cldnn_eltwise_desc.
Performs elementwise operations (sum, subtract, max or product) on two input primitives Also supports...
size_t size
Number of ids in the array.
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.
uint32_t with_activation
Enables Relu activation.
bool with_activation
Enables Relu activation.
eltwise_mode
Select mode for the eltwise layer.
cldnn_primitive_id_arr input
Input primitives ids.
float activation_negative_slope
Relu activation slope.
Performs elementwise operations (sum, subtract, max or product) on two input primitives Also supports...
float activation_negative_slope
Relu activation slope.
std::string primitive_id
Unique id of a primitive within a topology.
Eltwise product (Hamarad).
Eltwise product (Hamarad).
fixed_size_vector_ref input
List of ids of input primitives.
int32_t mode
Eltwise mode. See cldnn_eltwise_mode.
base class for all primitives implementations.
padding output_padding
Requested output padding.