@@ -167,7 +167,7 @@ def _generate_config(self):
167
167
# The first linear layer, from input-dim (spliced x2) to bottleneck-dim
168
168
configs .append ('component name={0}.linear type=TdnnComponent input-dim={1} '
169
169
'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 (
171
171
name , input_dim , bottleneck_dim , l2_regularize ,
172
172
max_change , time_offsets1 ))
173
173
configs .append ('component-node name={0}.linear component={0}.linear '
@@ -176,7 +176,7 @@ def _generate_config(self):
176
176
# The affine layer, from bottleneck-dim (spliced x2) to output-dim
177
177
configs .append ('component name={0}.affine type=TdnnComponent '
178
178
'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 (
180
180
name , bottleneck_dim , output_dim , l2_regularize ,
181
181
max_change , time_offsets2 ))
182
182
configs .append ('component-node name={0}.affine component={0}.affine '
@@ -291,7 +291,7 @@ def _generate_config(self):
291
291
self_repair_scale = self .config ['self-repair-scale' ]
292
292
293
293
# 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 '
295
295
'input-dim={1} output-dim={2} l2-regularize={3} max-change={4}' .format (
296
296
name , input_dim , big_dim , l2_regularize , max_change ))
297
297
configs .append ('component-node name={0}.affine component={0}.affine '
@@ -314,7 +314,7 @@ def _generate_config(self):
314
314
# ("floating" orthonormal constraint).
315
315
configs .append ('component name={0}.linear type=LinearComponent '
316
316
'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 (
318
318
name , big_dim , small_dim ,
319
319
l2_regularize , max_change ))
320
320
configs .append ('component-node name={0}.linear component={0}.linear '
0 commit comments