|  View source on GitHub | 
Initializer which concats other intializers.
tfp.layers.BlockwiseInitializer(
    initializers, sizes, validate_args=False
)
| Args | |
|---|---|
| initializers | listof Keras initializers, e.g.,"glorot_uniform"ortf.keras.initializers.Constant(0.5413). | 
| sizes | listofintscalars representing the number of elements
associated with each initializer ininitializers. | 
| validate_args | Python boolindicating we should do (possibly expensive)
graph-time assertions, if necessary. | 
| Attributes | |
|---|---|
| initializers | |
| sizes | |
| validate_args | |
Methods
from_config
@classmethodfrom_config( config )
Instantiates an initializer from a configuration dictionary.
get_config
get_config()
Returns initializer configuration as a JSON-serializable dict.
__call__
__call__(
    shape, dtype=None
)
Returns a tensor object initialized as specified by the initializer.
| Args | |
|---|---|
| shape | Shape of the tensor. | 
| dtype | Optional dtype of the tensor. If not provided will return tensor
of tf.float32. |