group normalization使用
Created by: littletomatodonkey
我在使用GN的时候,会报出以下的错误
mean_out = helper.create_tmp_variable(dtype=dtype, stop_gradient=True) AttributeError: 'LayerHelper' object has no attribute 'create_tmp_variable'
调用的代码如下
out = fluid.layers.group_norm(conv, groups=32,
param_attr=ParamAttr(name=gn_name + '_gamma'),
bias_attr=ParamAttr(name=gn_name + '_beta'),
act=act)
想问一下GN的正确使用方式,谢谢啦