I'm trying to use normalization layer given by tensorflow. In that function , there is a field to specify whether we are using beta or gamma values.
center: If True, subtract
beta
. If False,beta
is ignored.scale: If True, multiply by
gamma
. If False,gamma
is not used. When the next layer is linear (also egnn.relu
), this can be disabled since the scaling can be done by the next layer.
But there is nowhere to input beta
and gamma
values into the function.
I need to know how can I input values for beta
and gamma
..?
The link you provided has specified the function as tf.contrib.layers.batch_norm(*args, **kwargs)
.
Looks like you should be able to pass beta
and gamma
as keyword arguments
or **kwargs
like this:
tf.contrib.layers.batch_norm(beta=value, gamma=value)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.