openvino.runtime.opset15.random_uniform#
- openvino.runtime.opset15.random_uniform(output_shape: Node | int | float | ndarray, min_val: Node | int | float | ndarray, max_val: Node | int | float | ndarray, output_type: str, global_seed: int = 0, op_seed: int = 0, alignment: str = 'tensorflow', name: str | None = None) Node #
Return a node which generates sequence of random values from uniform distribution.
- Parameters:
output_shape – Tensor with shape of the output tensor.
min_val – Tensor with the lower bound on the range of random values to generate.
max_val – Tensor with the upper bound on the range of random values to generate.
output_type – Specifies the output tensor type, possible values: ‘i64’, ‘i32’, ‘f64’, ‘f32’, ‘f16’, ‘bf16’.
global_seed – Specifies global seed value. Required to be a positive integer or 0.
op_seed – Specifies operational seed value. Required to be a positive integer or 0.
alignment – Specifies alignment of the randomly generated numbers to a given framework. Possible values: ‘tensorflow’, ‘pytorch’. Default is ‘tensorflow’.
name – Optional output node name.
- Returns:
The new node which performs generation of random values from uniform distribution.