Class ov::op::v8::RandomUniform#

class RandomUniform : public ov::op::Op#

Tensor RandomUniform operation.

Public Functions

RandomUniform(const Output<Node> &out_shape, const Output<Node> &min_val, const Output<Node> &max_val, const ov::element::Type &out_type, uint64_t global_seed = 0, uint64_t op_seed = 0, ov::op::PhiloxAlignment alignment = ov::op::PhiloxAlignment::TENSORFLOW)#

Constructs a RandomUniform operation.

Parameters:
  • out_shapeNode producing the tensor with output shape.

  • min_valNode producing the tensor with minimum value.

  • max_valNode producing the tensor with maximum value.

  • out_typeOutput type of the tensor.

  • global_seed – Global seed value.

  • op_seed – Operational seed value.

  • alignment – Alignment of numbers generated by Philox algorithm based on provided seed.

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 constant_fold(OutputVector &output_values, const OutputVector &inputs_values) override#
Returns:

Turns off constant folding for RandomUniform operation.

const ov::element::Type &get_out_type() const#
Returns:

The output tensor type.

uint64_t get_global_seed() const#
Returns:

The global seed value.

uint64_t get_op_seed() const#
Returns:

The operational seed value.

std::pair<uint64_t, uint64_t> get_state() const#
Returns:

The state value.

ov::op::PhiloxAlignment get_alignment() const#
Returns:

The alignment mode.

virtual bool has_evaluate() const override#

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