///////////////////////////////////////////////////////////////////////////////////////////////////
#pragma once
-#include "../C/embed.h"
#include "primitive.hpp"
#include <vector>
/// @n output_size = { 8, 75, 15, 1 };
/// @par Algorithm:
/// @par Where:
-struct embed : public primitive_base<embed, CLDNN_PRIMITIVE_DESC(embed)> {
+struct embed : public primitive_base<embed> {
CLDNN_DECLARE_PRIMITIVE(embed)
/// @brief Constructs embed primitive.
const primitive_id& weights)
: primitive_base(id, {input}), weights(weights), bias("") {}
- /// @brief Constructs a copy from C API @CLDNN_PRIMITIVE_DESC{embed}
- embed(const dto* dto)
- : primitive_base(dto), weights(dto->weights), bias(dto->bias) {
- }
-
/// @brief Primitive id containing weights data.
primitive_id weights;
/// @brief Primitive id containing bias data.
else
return {weights, bias};
}
-
- void update_dto(dto& dto) const override {
- dto.weights = weights.c_str();
- dto.bias = bias.c_str();
- }
};
/// @}
/// @}
/// @}
} // namespace cldnn
-#pragma once
\ No newline at end of file
+#pragma once