contrib.keras.initializers.Identity
tf.contrib.keras.initializers.Identity
class tf.contrib.keras.initializers.Identity
Defined in tensorflow/contrib/keras/python/keras/initializers.py
.
Initializer that generates the identity matrix.
Only use for square 2D matrices.
Arguments:
gain: Multiplicative factor to apply to the identity matrix.
Methods
__init__
__init__(gain=1.0)
__call__
__call__( shape, dtype=None )
from_config
from_config( cls, config )
Instantiates an initializer from a configuration dictionary.
Example:
initializer = RandomUniform(-1, 1) config = initializer.get_config() initializer = RandomUniform.from_config(config)
Arguments:
-
config
: A Python dictionary. It will typically be the output ofget_config
.
Returns:
An Initializer instance.
get_config
get_config()
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/keras/initializers/Identity