7 #include "ngraph/node.hpp"
8 #include "ngraph/op/op.hpp"
9 #include "ngraph/op/util/attr_types.hpp"
10 #include "ngraph/op/util/fused_op.hpp"
11 #include "ngraph/runtime/host_tensor.hpp"
30 NGRAPH_RTTI_DECLARATION;
32 enum class DepthToSpaceMode
48 const DepthToSpaceMode& mode,
49 std::size_t block_size = 1);
52 const std::string& mode,
53 std::size_t block_size = 1);
56 std::size_t get_block_size()
const {
return m_blocksize; }
57 DepthToSpaceMode get_mode()
const {
return m_mode; }
58 virtual std::shared_ptr<Node>
59 clone_with_new_inputs(
const OutputVector& new_args)
const override;
62 const HostTensorVector& inputs)
const override;
66 std::size_t m_blocksize;
67 DepthToSpaceMode m_mode;
68 DepthToSpaceMode mode_from_string(
const std::string& mode)
const;
71 bool evaluate_depth_to_space(
const HostTensorVector& outputs,
72 const HostTensorVector& inputs)
const;
79 std::ostream& operator<<(std::ostream& s,
const op::v0::DepthToSpace::DepthToSpaceMode& type);
92 "AttributeAdapter<op::v0::DepthToSpace::DepthToSpaceMode>", 0};
An AttributeAdapter "captures" an attribute as an AT& and makes it available as a ValueAccessor<VAT>.
Definition: attribute_adapter.hpp:161
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:59
Access an enum via a string.
Definition: attribute_adapter.hpp:168
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Root of all actual ops.
Definition: op.hpp:17
DepthToSpace permutes data from the depth dimension of the input blob into spatial dimensions.
Definition: depth_to_space.hpp:28
bool has_evaluate() const override
Allows to get information about availability of evaluate method for the current operation.
DepthToSpace(const Output< Node > &data, const DepthToSpaceMode &mode, std::size_t block_size=1)
Constructs a DepthToSpace operation.
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
bool evaluate(const HostTensorVector &outputs, const HostTensorVector &inputs) const override
Evaluates the op on input_values putting results in output_values.
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16