9 #include "ngraph/node.hpp"
10 #include "ngraph/op/util/fused_op.hpp"
22 NGRAPH_RTTI_DECLARATION;
36 const int64_t axis = 1,
37 const int64_t group = 1);
40 size_t get_zero_based_axis()
const;
44 virtual std::shared_ptr<Node>
45 clone_with_new_inputs(
const OutputVector& new_args)
const override;
47 int64_t get_axis()
const {
return m_axis; }
48 int64_t get_group()
const {
return m_group; }
50 const HostTensorVector& inputs)
const override;
58 Shape get_pre_shuffle_shape(
const Shape& data_shape)
const;
59 bool evaluate_shuffle_channels(
const HostTensorVector& outputs,
60 const HostTensorVector& inputs)
const;
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:59
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Shape for a tensor.
Definition: shape.hpp:19
Root of all actual ops.
Definition: op.hpp:17
Permutes data in the channel dimension of the input.
Definition: shuffle_channels.hpp:20
bool evaluate(const HostTensorVector &outputs, const HostTensorVector &inputs) const override
Evaluates the op on input_values putting results in output_values.
virtual void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
bool has_evaluate() const override
Allows to get information about availability of evaluate method for the current operation.
ShuffleChannels(const Output< Node > &data, const int64_t axis=1, const int64_t group=1)
Constructs a ShuffleChannels node.
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16