16 #include <ngraph/node.hpp>
17 #include <ngraph/variant.hpp>
18 #include <transformations_visibility.hpp>
30 std::set<std::string> fused_names;
43 fused_names.insert(name);
64 extern template class TRANSFORMATIONS_API VariantImpl<FusedNames>;
69 static constexpr VariantTypeInfo type_info{
"Variant::RuntimeAttribute::FusedNames", 0};
71 const VariantTypeInfo &get_type_info()
const override {
75 VariantWrapper(
const value_type &value) : VariantImpl<value_type>(value) {}
77 std::shared_ptr<ngraph::Variant> merge(
const ngraph::NodeVector & nodes)
override;
79 std::shared_ptr<ngraph::Variant> init(
const std::shared_ptr<ngraph::Node> & node)
override;
87 TRANSFORMATIONS_API std::string
getFusedNames(
const std::shared_ptr<ngraph::Node> & node);
95 TRANSFORMATIONS_API std::vector<std::string>
getFusedNamesVector(
const std::shared_ptr<ngraph::Node> & node);
FusedName class represents runtime info attribute that stores all operation names that was fully or p...
Definition: fused_names_attribute.hpp:28
std::vector< std::string > getVectorNames() const
return vector of fused names sorted in alphabetical order
std::string getNames() const
return string with operation names separated by coma in alphabetical order
void fuseWith(const FusedNames &names)
Unites current set of already fused names with another FusedNames object.
FusedNames(const std::string &name)
Constructs a new object consisting of a single name *.
Definition: fused_names_attribute.hpp:42
Definition: fused_names_attribute.hpp:67
ngraph namespace
Definition: add_fake_quantize_fusion.hpp:14
std::vector< std::string > getFusedNamesVector(const std::shared_ptr< ngraph::Node > &node)
getFusedNamesVector return vector of fused names sorted in alphabetical order
std::string getFusedNames(const std::shared_ptr< ngraph::Node > &node)
getFusedNames return string with operation names separated by coma in alphabetical order