We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm confused. In model.py, function _variable_with_weight_decay, the doc says
Note that the Variable is initialized with a truncated normal distribution.
and the code is
var = _variable_on_cpu(name, shape,initializer=tf.contrib.layers.xavier_initializer())
but in offical doc of tensorflow https://www.tensorflow.org/api_docs/python/tf/contrib/layers/xavier_initializer
the function prototype is xavier_initializer( uniform=True, seed=None, dtype=tf.float32 ) and the doc syas
uniform: Whether to use uniform or normal distributed random initialization.
So, xavier_initializer uses uniform distrubution by default.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm confused. In model.py, function _variable_with_weight_decay, the doc says
and the code is
but in offical doc of tensorflow https://www.tensorflow.org/api_docs/python/tf/contrib/layers/xavier_initializer
the function prototype is
xavier_initializer(
uniform=True,
seed=None,
dtype=tf.float32
)
and the doc syas
So, xavier_initializer uses uniform distrubution by default.
The text was updated successfully, but these errors were encountered: