uniform¶
dragon.vm.tensorflow.random.
uniform
(
shape,
minval=0,
maxval=1,
dtype='float32',
seed=None,
name=None
)[source]¶Return a tensor initialized from the uniform distribution.
- Parameters:
- shape (Sequence[Union[int, dragon.Tensor]]) – The shape of the tensor.
- minval (number, optional, default=0) – The value to .
- maxval (number, optional, default=1) – The value to .
- dtype (str, optional) – The optional data type.
- seed (int, optional) – The optional random seed.
- name (str, optional) – The operation name.
- Returns:
dragon.Tensor – The output tensor.