class tf.ones_initializer
See the guide: Variables > Sharing Variables
Initializer that generates tensors initialized to 1.
__init__(dtype=tf.float32)
Defined in tensorflow/python/ops/init_ops.py
.
© 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/ones_initializer