module 'tensorflow._api.v1.random' has no attribute 'set_seed code example
Example 1: module 'tensorflow' has no attribute 'set_random_seed'
tf.random.set_seed(seed)
Example 2: module 'tensorflow_core.compat.v1.random' has no attribute 'set_seed'
tf.random.set_random_seed(seed)