mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 14:10:11 +00:00
ef9570c315
This recreates pull request #2192
15 lines
218 B
Python
15 lines
218 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
|