nnet-simple-component.h File Reference

This file contains declarations of components that are "simple", meaning they don't care about the indexes they are operating on, produce one output for one input, and return the kSimpleComponent flag in their Properties(): for example, tanh and affine components. More...

#include "nnet3/nnet-common.h"
#include "nnet3/nnet-component-itf.h"
#include "nnet3/natural-gradient-online.h"
#include <iostream>
Include dependency graph for nnet-simple-component.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PnormComponent
 
class  DropoutComponent
 
class  ElementwiseProductComponent
 
class  SigmoidComponent
 
class  TanhComponent
 
class  RectifiedLinearComponent
 
class  AffineComponent
 
class  BlockAffineComponent
 This class implements an affine transform using a block diagonal matrix e.g., one whose weight matrix is all zeros except for blocks on the diagonal. More...
 
class  RepeatedAffineComponent
 
class  NaturalGradientRepeatedAffineComponent
 
class  SoftmaxComponent
 
class  LogSoftmaxComponent
 
class  NaturalGradientAffineComponent
 
class  LinearComponent
 
class  FixedAffineComponent
 FixedAffineComponent is an affine transform that is supplied at network initialization time and is not trainable. More...
 
class  SumGroupComponent
 SumGroupComponent is used to sum up groups of posteriors. More...
 
class  FixedScaleComponent
 FixedScaleComponent applies a fixed per-element scale; it's similar to the Rescale component in the nnet1 setup (and only needed for nnet1 model conversion). More...
 
class  FixedBiasComponent
 FixedBiasComponent applies a fixed per-element bias; it's similar to the AddShift component in the nnet1 setup (and only needed for nnet1 model conversion. More...
 
class  NoOpComponent
 NoOpComponent just duplicates its input. More...
 
class  SumBlockComponent
 SumBlockComponent sums over blocks of its input: for instance, if you create one with the config "input-dim=400 output-dim=100", its output will be the sum over the 4 100-dimensional blocks of the input. More...
 
class  ClipGradientComponent
 
class  PermuteComponent
 PermuteComponent changes the order of the columns (i.e. More...
 
class  PerElementScaleComponent
 PerElementScaleComponent scales each dimension of its input with a separate trainable scale; it's like a linear component with a diagonal matrix. More...
 
class  PerElementOffsetComponent
 
class  ConstantFunctionComponent
 
class  NaturalGradientPerElementScaleComponent
 NaturalGradientPerElementScaleComponent is like PerElementScaleComponent but it uses a natural gradient update for the per-element scales. More...
 
class  ScaleAndOffsetComponent
 
class  CompositeComponent
 CompositeComponent is a component representing a sequence of [simple] components. More...
 

Namespaces

 kaldi
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
 
 kaldi::nnet3
 

Detailed Description

This file contains declarations of components that are "simple", meaning they don't care about the indexes they are operating on, produce one output for one input, and return the kSimpleComponent flag in their Properties(): for example, tanh and affine components.

In nnet-general-component.h there are components that don't fit this pattern.

Some components that do provide the kSimpleComponent flag are not declared here: see also nnet-normalize-component.h and nnet-combined-component.h

Definition in file nnet-simple-component.h.