text: // Copyright (C) 2020 Intel Corporation
  // SPDX-License-Identifier: Apache-2.0
  //
  
  #include "itt.hpp"
  
  #include "snippets/op/broadcastload.hpp"
  
  #include <ngraph/runtime/reference/broadcast.hpp>
  
  using namespace std;
  using namespace ngraph;
  
  NGRAPH_RTTI_DEFINITION(snippets::op::BroadcastLoad, "BroadcastLoad", 0);
  
  snippets::op::BroadcastLoad::BroadcastLoad(const Output<Node>& x, Shape shape)
  : BroadcastMove(x, shape), broadcast_info(x.get_shape().size(), 0) {
      constructor_validate_and_infer_types();
  }
  
  bool snippets::op::BroadcastLoad::visit_attributes(AttributeVisitor& visitor) {
      return true;
  }
  
  std::shared_ptr<Node> snippets::op::BroadcastLoad::clone_with_new_inputs(const OutputVector& new_args) const {
      INTERNAL_OP_SCOPE(BroadcastLoad);
      check_new_args_count(this, new_args);
      auto other = std::make_shared<BroadcastLoad>(new_args.at(0), output_shape);
      other->set_broadcast_info(this->broadcast_info);
      return other;
  }
  
  void snippets::op::BroadcastLoad::validate_and_infer_types() {
      set_output_type(0, get_input_element_type(0), output_shape);
  }
  