26 #ifndef KALDI_NNET3_NNET_NORMALIZE_COMPONENT_H_    27 #define KALDI_NNET3_NNET_NORMALIZE_COMPONENT_H_    83   virtual std::string 
Type()
 const { 
return "NormalizeComponent"; }
    89   virtual void Backprop(
const std::string &debug_info,
    98   virtual void Read(std::istream &is, 
bool binary);
    99   virtual void Write(std::ostream &os, 
bool binary) 
const;
   104   virtual std::string 
Info() 
const;
   171   void SetTestMode(
bool test_mode);
   179   virtual std::string 
Info() 
const;
   181   virtual std::string 
Type()
 const { 
return "BatchNormComponent"; }
   195   virtual void Backprop(
const std::string &debug_info,
   204   virtual void Read(std::istream &is, 
bool binary); 
   208   virtual void Write(std::ostream &os, 
bool binary) 
const;
   244   static void ComputeOffsetAndScale(
double count,
   251   void ComputeDerived();
 virtual Component * Copy() const
Copies component (deep copy). 
 
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
 
CuVector< double > stats_sum_
 
CuVector< BaseFloat > offset_
 
virtual int32 Properties() const
Return bitmask of the component's properties. 
 
NormalizeComponent & operator=(const NormalizeComponent &other)
 
static const BaseFloat kSquaredNormFloor
 
virtual Component * Copy() const
Copies component (deep copy). 
 
Abstract base-class for neural-net components. 
 
virtual void InitFromConfig(ConfigLine *cfl)
Initialize, from a ConfigLine object. 
 
This class represents a matrix that's stored on the GPU if we have one, and in memory if not...
 
virtual void Write(std::ostream &os, bool binary) const
Write component to stream. 
 
virtual void Backprop(const std::string &debug_info, const ComponentPrecomputedIndexes *indexes, const CuMatrixBase< BaseFloat > &in_value, const CuMatrixBase< BaseFloat > &, const CuMatrixBase< BaseFloat > &out_deriv, void *memo, Component *to_update, CuMatrixBase< BaseFloat > *in_deriv) const
Backprop function; depending on which of the arguments 'to_update' and 'in_deriv' are non-NULL...
 
virtual std::string Info() const
Returns some text-form information about this component, for diagnostics. 
 
virtual int32 Properties() const
Return bitmask of the component's properties. 
 
virtual void Scale(BaseFloat scale)
This virtual function when called on – an UpdatableComponent scales the parameters by "scale" when c...
 
CuVector< BaseFloat > scale_
 
virtual void ZeroStats()
Components that provide an implementation of StoreStats should also provide an implementation of Zero...
 
virtual std::string Type() const
Returns a string such as "SigmoidComponent", describing the type of the object. 
 
virtual void StoreStats(const CuMatrixBase< BaseFloat > &in_value, const CuMatrixBase< BaseFloat > &out_value, void *memo)
This function may store stats on average activation values, and for some component types...
 
CuVector< double > stats_sumsq_
 
virtual int32 InputDim() const
Returns input-dimension of this component. 
 
virtual int32 OutputDim() const
Returns output-dimension of this component. 
 
CuMatrix< BaseFloat > mean_uvar_scale
 
virtual std::string Type() const
Returns a string such as "SigmoidComponent", describing the type of the object. 
 
const CuVector< BaseFloat > & Offset() const
 
Matrix for CUDA computing. 
 
const CuVector< BaseFloat > & Scale() const
 
This class is responsible for parsing input like hi-there xx=yyy a=b c empty= f-oo=Append(bar, sss) ba_z=123 bing='a b c' baz="a b c d='a b' e" and giving you access to the fields, in this case. 
 
virtual void DeleteMemo(void *memo) const
This virtual function only needs to be overwritten by Components that return a non-NULL memo from the...
 
virtual int32 OutputDim() const
Returns output-dimension of this component. 
 
virtual void Read(std::istream &is, bool binary)
Read function (used after we know the type of the Component); accepts input that is missing the token...
 
virtual int32 InputDim() const
Returns input-dimension of this component. 
 
virtual void Add(BaseFloat alpha, const Component &other)
This virtual function when called by – an UpdatableComponent adds the parameters of another updatabl...
 
virtual void * Propagate(const ComponentPrecomputedIndexes *indexes, const CuMatrixBase< BaseFloat > &in, CuMatrixBase< BaseFloat > *out) const
Propagate function.