Class ov::op::v1::Transpose#

class Transpose : public ov::op::Op#

Tensor transpose operation.

Public Types

enum Ins#

Inputs indexes and count.

Values:

enumerator ARG#
enumerator ORDER#
enumerator IN_COUNT#
enum Outs#

Outputs indexes and count.

Values:

enumerator ARG_T#
enumerator OUT_COUNT#

Public Functions

Transpose(const Output<Node> &arg, const Output<Node> &input_order)#

Constructs a transpose operation.

Parameters:
  • argNode producing the tensor to be transposed.

  • input_orderNode producing the permutation to apply to the axes of the input shape. Must be a vector with shape [n], where n is the rank of arg. The tensor’s value must contain every integer in the range [0, n-1].

virtual void validate_and_infer_types() override#

Verifies that attributes and inputs are consistent and computes output shapes and element types. Must be implemented by concrete child classes so that it can be run any number of times.

Throws if the node is invalid.

virtual bool has_evaluate() const override#

Allows to get information about availability of evaluate method for the current operation.