22 #include "ngraph/attribute_adapter.hpp"
23 #include "ngraph/ngraph_visibility.hpp"
24 #include "ngraph/type.hpp"
40 std::ostream& operator<<(std::ostream& s,
const PadMode& type);
52 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<op::PadMode>", 0};
83 std::ostream& operator<<(std::ostream& s,
const PadType& type);
95 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<op::PadType>", 0};
109 std::ostream& operator<<(std::ostream& s,
const RoundingType& type);
122 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<op::RoundingType>", 0};
123 const DiscreteTypeInfo& get_type_info()
const override {
return type_info; }
205 std::ostream& operator<<(std::ostream& s,
const BroadcastType& type);
218 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<op::AutoBroadcastType>", 0};
219 const DiscreteTypeInfo& get_type_info()
const override {
return type_info; }
232 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<op::BroadcastType>", 0};
233 const DiscreteTypeInfo& get_type_info()
const override {
return type_info; }
248 std::ostream& operator<<(std::ostream& s,
const EpsMode& type);
260 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<op::EpsMode>", 0};
261 const DiscreteTypeInfo& get_type_info()
const override {
return type_info; }
266 enum class TopKSortType
277 std::ostream& operator<<(std::ostream& s,
const TopKSortType& type);
290 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<op::TopKSortType>", 0};
291 const DiscreteTypeInfo& get_type_info()
const override {
return type_info; }
303 std::ostream& operator<<(std::ostream& s,
const TopKMode& type);
315 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<op::TopKMode>", 1};
316 const DiscreteTypeInfo& get_type_info()
const override {
return type_info; }
325 : m_type(AutoBroadcastType::NONE)
349 return a.m_type == m_type && a.m_axis == m_axis;
369 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<op::AutoBroadcastSpec>", 0};
381 : m_type(BroadcastType::NUMPY)
405 return a.m_type == m_type && a.m_axis == m_axis;
420 static constexpr
DiscreteTypeInfo type_info{
"AttributeAdapter<op::BroadcastModeSpec>", 0};
453 "AttributeAdapter<op::RecurrentSequenceDirection>", 1};
454 const DiscreteTypeInfo& get_type_info()
const override {
return type_info; }
const DiscreteTypeInfo & get_type_info() const override
type info enables identification of the value accessor, as well as is_type and as_type.
Definition: attr_types.hpp:370
const DiscreteTypeInfo & get_type_info() const override
type info enables identification of the value accessor, as well as is_type and as_type.
Definition: attr_types.hpp:421
An AttributeAdapter "captures" an attribute as an AT& and makes it available as a ValueAccessor<VAT>.
Definition: attribute_adapter.hpp:171
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:71
Access an enum via a string.
Definition: attribute_adapter.hpp:178
Adapters will see visitor.
Definition: attribute_adapter.hpp:194
RoundingType
Rounding Type used for Pooling operators.
Definition: attr_types.hpp:103
PadType
Padding Type used for Convolution and Pooling
Definition: attr_types.hpp:73
RecurrentSequenceDirection
This class defines possible recurrent sequence directions.
Definition: attr_types.hpp:432
EpsMode
Specifies how eps is combined with L2 value.
Definition: attr_types.hpp:240
AutoBroadcastType
Specifies the algorithm to use for implicit broadcasting of a tensor to align with another tensor.
Definition: attr_types.hpp:167
PadMode
Modes for the Pad operator.
Definition: attr_types.hpp:32
BroadcastType
BroadcastType specifies rules used for mapping of input tensor axes to output shape axes.
Definition: attr_types.hpp:196
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28
Implicit broadcast specification.
Definition: attr_types.hpp:323
Implicit broadcast specification.
Definition: attr_types.hpp:379