19 #include "../C/scale.h" 20 #include "primitive.hpp" 46 CLDNN_DECLATE_PRIMITIVE(
scale)
86 throw std::invalid_argument(
"scale dto should contains exactly 2 inputs");
93 std::vector<std::reference_wrapper<const primitive_id>> get_dependencies()
const override 101 void update_dto(dto& dto)
const override 103 dto.bias =
bias.c_str();
scale(const primitive_id &id, const primitive_id &input, const primitive_id &scale_input, const padding &output_padding=padding())
Constructs scale primitive without adding bias.
Represents data padding information.
Performs elementwise product of input and scale_input.
size_t size
Number of ids in the array.
scale(const dto *dto)
Constructs a copy from C API cldnn_scale_desc.
Performs elementwise product of input and scale_input.
const primitive_id id
Primitive's id.
scale(const primitive_id &id, const primitive_id &input, const primitive_id &scale_input, const primitive_id &bias, const padding &output_padding=padding())
Constructs scale primitive with optional adding bias.
std::string primitive_id
Unique id of a primitive within a topology.
primitive_id bias
Primitive id containing bias data.
fixed_size_vector_ref input
List of ids of input primitives.
base class for all primitives implementations.
padding output_padding
Requested output padding.
cldnn_primitive_id_arr input
Input primitives ids.