I'm learning TensorFlow 2.0. I'm trying to use the function or method
uniform = tf.random.uniform(shape=(5), minval=5, maxval=10)
but Python throws this error:
Truncated Traceback (Use C-c C-$ to view full TB):
/usr/lib/python3.7/site-packages/six.py in raise_from(value, from_value)
InvalidArgumentError: shape must be a vector of {int32,int64}, got shape [] [Op:RandomUniform]
When I try to execute this line using shape=[5]
, it executes without problem. It's a TensorFlow problem, or I'm not understanding something?