19 #include "ngraph/node.hpp"
20 #include "ngraph/op/op.hpp"
21 #include "ngraph/op/util/attr_types.hpp"
22 #include "ngraph/op/util/fused_op.hpp"
24 NGRAPH_SUPPRESS_DEPRECATED_START
43 static constexpr NodeTypeInfo type_info{
"DepthToSpace", 0};
44 const NodeTypeInfo& get_type_info()
const override {
return type_info; }
45 enum class DepthToSpaceMode
61 const DepthToSpaceMode& mode,
62 std::size_t block_size = 1);
65 const std::string& mode,
66 std::size_t block_size = 1);
69 std::size_t get_block_size()
const {
return m_blocksize; }
70 DepthToSpaceMode get_mode()
const {
return m_mode; }
71 virtual OutputVector decompose_op()
const override;
73 virtual std::shared_ptr<Node>
74 clone_with_new_inputs(
const OutputVector& new_args)
const override;
77 std::size_t m_blocksize;
78 DepthToSpaceMode m_mode;
79 DepthToSpaceMode mode_from_string(
const std::string& mode)
const;
82 using v0::DepthToSpace;
86 std::ostream& operator<<(std::ostream& s,
const op::v0::DepthToSpace::DepthToSpaceMode& type);
89 class NGRAPH_API AttributeAdapter<op::v0::DepthToSpace::DepthToSpaceMode>
90 :
public EnumAttributeAdapterBase<op::v0::DepthToSpace::DepthToSpaceMode>
93 AttributeAdapter(op::v0::DepthToSpace::DepthToSpaceMode& value)
94 : EnumAttributeAdapterBase<op::v0::DepthToSpace::DepthToSpaceMode>(value)
99 "AttributeAdapter<op::v0::DepthToSpace::DepthToSpaceMode>", 0};
100 const DiscreteTypeInfo& get_type_info()
const override {
return type_info; }
104 NGRAPH_SUPPRESS_DEPRECATED_END