mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
fix ddpg
This commit is contained in:
@@ -23,7 +23,7 @@ from utils import force_list
|
||||
def normalized_columns_initializer(std=1.0):
|
||||
def _initializer(shape, dtype=None, partition_info=None):
|
||||
out = np.random.randn(*shape).astype(np.float32)
|
||||
out *= std / np.sqrt(np.square(out).sum(axis=0, keep_dims=True))
|
||||
out *= std / np.sqrt(np.square(out).sum(axis=0, keepdims=True))
|
||||
return tf.constant(out)
|
||||
return _initializer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user