@@ -167,7 +167,7 @@ def _generate_config(self):
167167 # The first linear layer, from input-dim (spliced x2) to bottleneck-dim
168168 configs .append ('component name={0}.linear type=TdnnComponent input-dim={1} '
169169 'output-dim={2} l2-regularize={3} max-change={4} use-bias=false '
170- 'time-offsets={5} orthonormal-constraint=-1.0' .format (
170+ 'time-offsets={5} orthonormal-constraint=-1.0 use-natural-gradient=false ' .format (
171171 name , input_dim , bottleneck_dim , l2_regularize ,
172172 max_change , time_offsets1 ))
173173 configs .append ('component-node name={0}.linear component={0}.linear '
@@ -176,7 +176,7 @@ def _generate_config(self):
176176 # The affine layer, from bottleneck-dim (spliced x2) to output-dim
177177 configs .append ('component name={0}.affine type=TdnnComponent '
178178 'input-dim={1} output-dim={2} l2-regularize={3} max-change={4} '
179- 'time-offsets={5}' .format (
179+ 'time-offsets={5} use-natural-gradient=false ' .format (
180180 name , bottleneck_dim , output_dim , l2_regularize ,
181181 max_change , time_offsets2 ))
182182 configs .append ('component-node name={0}.affine component={0}.affine '
@@ -291,7 +291,7 @@ def _generate_config(self):
291291 self_repair_scale = self .config ['self-repair-scale' ]
292292
293293 # The affine layer, from input-dim to big-dim.
294- configs .append ('component name={0}.affine type=NaturalGradientAffineComponent '
294+ configs .append ('component name={0}.affine type=AffineComponent '
295295 'input-dim={1} output-dim={2} l2-regularize={3} max-change={4}' .format (
296296 name , input_dim , big_dim , l2_regularize , max_change ))
297297 configs .append ('component-node name={0}.affine component={0}.affine '
@@ -314,7 +314,7 @@ def _generate_config(self):
314314 # ("floating" orthonormal constraint).
315315 configs .append ('component name={0}.linear type=LinearComponent '
316316 'input-dim={1} output-dim={2} l2-regularize={3} max-change={4} '
317- 'orthonormal-constraint=-1 ' .format (
317+ 'orthonormal-constraint=-1 use-natural-gradient=false ' .format (
318318 name , big_dim , small_dim ,
319319 l2_regularize , max_change ))
320320 configs .append ('component-node name={0}.linear component={0}.linear '
0 commit comments