24 #include "ngraph/attribute_adapter.hpp"
25 #include "ngraph/ngraph_visibility.hpp"
35 NGRAPH_API
AxisSet(
const std::initializer_list<size_t>& axes);
37 NGRAPH_API
AxisSet(
const std::set<size_t>& axes);
39 NGRAPH_API
AxisSet(
const std::vector<size_t>& axes);
47 NGRAPH_API std::vector<int64_t> to_vector()
const;
59 const std::vector<int64_t>&
get()
override;
60 void set(
const std::vector<int64_t>& value)
override;
63 operator AxisSet&() {
return m_ref; }
66 std::vector<int64_t> m_buffer;
67 bool m_buffer_valid{
false};
71 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:171
A set of axes.
Definition: axis_set.hpp:31
Provides access to an attribute of type AT as a value accessor type VAT.
Definition: attribute_adapter.hpp:61
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28