param_attr

ParamAttr

class paddle.v2.fluid.param_attr.ParamAttr(name=None, initializer=None, learning_rate=1.0, regularizer=None, trainable=True, gradient_clip=None)

WeightNormParamAttr

class paddle.v2.fluid.param_attr.WeightNormParamAttr(dim=None, **kwargs)

Used for weight normalization. Any field in ParamAttr can also be set here. Besides, an extra field dim can be set to indicate the dimension except which to normalize.