mirror of
https://github.com/barkeser2002/bullet3.git
synced 2026-11-24 12:36:17 +03:00
15 lines
220 B
Python
15 lines
220 B
Python
import random
|
|
import numpy as np
|
|
|
|
|
|
def set_global_seeds(seed):
|
|
try:
|
|
import tf.compat.v1 as tf
|
|
except ImportError:
|
|
pass
|
|
else:
|
|
tf.set_random_seed(seed)
|
|
np.random.seed(seed)
|
|
random.seed(seed)
|
|
return
|