mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 22:20:12 +00:00
13 lines
240 B
Python
13 lines
240 B
Python
import random
|
|
import numpy as np
|
|
|
|
def set_global_seeds(seed):
|
|
try:
|
|
import tensorflow as tf
|
|
except ImportError:
|
|
pass
|
|
else:
|
|
tf.set_random_seed(seed)
|
|
np.random.seed(seed)
|
|
random.seed(seed)
|
|
return |