我想将以下代码从 tf1.0 更改为 tf2.0
tf.contrib.layers.layer_norm(
inputs=input_tensor, begin_norm_axis=-1, begin_params_axis=-1, scope=name)
Run Code Online (Sandbox Code Playgroud)
此代码取自https://github.com/google-research/bert/blob/master/modeling.py 第 364 行。
请帮我。