///////////////////////////////////////////////////////////////////////////////////////////////////
#pragma once
-#include "../C/fully_connected_grad_input.h"
#include "primitive.hpp"
#include <vector>
/// @{
/// @brief Performs backward fully connected layer (inner product) for input.
-
-struct fully_connected_grad_input : public primitive_base<fully_connected_grad_input, CLDNN_PRIMITIVE_DESC(fully_connected_grad_input)> {
+struct fully_connected_grad_input : public primitive_base<fully_connected_grad_input> {
CLDNN_DECLARE_PRIMITIVE(fully_connected_grad_input)
/// @brief Constructs fully connected layer grad for input.
: primitive_base(id, {input_grad, input}, output_padding), weights(weights) {
}
- /// @brief Constructs a copy from basic C API @CLDNN_PRIMITIVE_DESC{fully_connected_grad_input}
- fully_connected_grad_input(const dto* dto)
- : primitive_base(dto), weights(dto->weights) {
- }
-
/// @brief Primitive id containing weights data.
primitive_id weights;
std::vector<std::reference_wrapper<const primitive_id>> get_dependencies() const override {
return {weights};
}
-
- void update_dto(dto& dto) const override {
- dto.weights = weights.c_str();
- }
};
/// @}
/// @}
/// @}
-} // namespace cldnn
\ No newline at end of file
+} // namespace cldnn