0

I have installed tensorflow 1.2.1 and whenever i try to run

c=tf.random.normal(shape=(3,4),dtype=tf.float32)

I get the error AttributeError: module 'tensorflow' has no attribute 'random'

1 Answer 1

0

Use

c = tf.random_normal(shape=(3,4),dtype=tf.float32))

See the full list of available APIs here

See the usage here

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.