12 #include "ngraph/attribute_adapter.hpp"
13 #include "ngraph/ngraph_visibility.hpp"
23 NGRAPH_API
AxisSet(
const std::initializer_list<size_t>& axes);
25 NGRAPH_API
AxisSet(
const std::set<size_t>& axes);
27 NGRAPH_API
AxisSet(
const std::vector<size_t>& axes);
35 NGRAPH_API std::vector<int64_t> to_vector()
const;
47 const std::vector<int64_t>&
get()
override;
48 void set(
const std::vector<int64_t>& value)
override;
51 operator AxisSet&() {
return m_ref; }
55 std::vector<int64_t> m_buffer;
56 bool m_buffer_valid{
false};
60 std::ostream& operator<<(std::ostream& s,
const AxisSet& axis_set);
void set(const std::vector< int64_t > &value) override
Sets the value.
const std::vector< int64_t > & get() override
Returns the value.
An AttributeAdapter "captures" an attribute as an AT& and makes it available as a ValueAccessor<VAT>.
Definition: attribute_adapter.hpp:161
A set of axes.
Definition: axis_set.hpp:19
Provides access to an attribute of type AT as a value accessor type VAT.
Definition: attribute_adapter.hpp:49
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16