#include <am-nnet-simple.h>

Public Member Functions | |
| AmNnetSimple () | |
| AmNnetSimple (const AmNnetSimple &other) | |
| AmNnetSimple (const Nnet &nnet) | |
| int32 | NumPdfs () const | 
| void | Write (std::ostream &os, bool binary) const | 
| void | Read (std::istream &is, bool binary) | 
| const Nnet & | GetNnet () const | 
| Nnet & | GetNnet () | 
| Caution: if you structurally change the nnet, you should call SetContext() afterward.  More... | |
| void | SetNnet (const Nnet &nnet) | 
| void | SetPriors (const VectorBase< BaseFloat > &priors) | 
| const VectorBase< BaseFloat > & | Priors () const | 
| std::string | Info () const | 
| int32 | LeftContext () const | 
| Minimum left context required to compute an output.  More... | |
| int32 | RightContext () const | 
| Minimum right context required to compute an output.  More... | |
| int32 | InputDim () const | 
| Returns the input feature dim.  More... | |
| int32 | IvectorDim () const | 
| Returns the iVector dimension, or -1 if there is no such input.  More... | |
| void | SetContext () | 
| This function works out the left_context_ and right_context_ variables from the network (it's a rather complex calculation).  More... | |
Private Member Functions | |
| const AmNnetSimple & | operator= (const AmNnetSimple &other) | 
Private Attributes | |
| Nnet | nnet_ | 
| Vector< BaseFloat > | priors_ | 
| int32 | left_context_ | 
| int32 | right_context_ | 
Definition at line 49 of file am-nnet-simple.h.
      
  | 
  inline | 
Definition at line 51 of file am-nnet-simple.h.
      
  | 
  inline | 
Definition at line 53 of file am-nnet-simple.h.
      
  | 
  inlineexplicit | 
Definition at line 59 of file am-nnet-simple.h.
References AmNnetSimple::NumPdfs(), AmNnetSimple::Read(), AmNnetSimple::SetContext(), and AmNnetSimple::Write().
      
  | 
  inline | 
Definition at line 68 of file am-nnet-simple.h.
References AmNnetSimple::nnet_.
Referenced by DecodableAmNnetSimpleParallel::DecodableAmNnetSimpleParallel(), DecodableNnetSimpleLoopedInfo::DecodableNnetSimpleLoopedInfo(), main(), and Nnet::Read().
      
  | 
  inline | 
Caution: if you structurally change the nnet, you should call SetContext() afterward.
Definition at line 72 of file am-nnet-simple.h.
References AmNnetSimple::nnet_, AmNnetSimple::SetNnet(), and AmNnetSimple::SetPriors().
| std::string Info | ( | ) | const | 
Definition at line 80 of file am-nnet-simple.cc.
References Nnet::Info(), Nnet::InputDim(), AmNnetSimple::nnet_, Nnet::OutputDim(), and AmNnetSimple::priors_.
Referenced by main(), and AmNnetSimple::Priors().
      
  | 
  inline | 
Returns the input feature dim.
Definition at line 89 of file am-nnet-simple.h.
References Nnet::InputDim(), and AmNnetSimple::nnet_.
      
  | 
  inline | 
Returns the iVector dimension, or -1 if there is no such input.
Definition at line 92 of file am-nnet-simple.h.
References Nnet::InputDim(), AmNnetSimple::nnet_, AmNnetSimple::operator=(), and AmNnetSimple::SetContext().
      
  | 
  inline | 
Minimum left context required to compute an output.
Definition at line 83 of file am-nnet-simple.h.
References AmNnetSimple::left_context_.
| int32 NumPdfs | ( | ) | const | 
Definition at line 28 of file am-nnet-simple.cc.
References KALDI_ASSERT, AmNnetSimple::nnet_, and Nnet::OutputDim().
Referenced by AmNnetSimple::AmNnetSimple(), and kaldi::nnet3::SetPriors().
      
  | 
  private | 
Referenced by AmNnetSimple::IvectorDim().
      
  | 
  inline | 
Definition at line 78 of file am-nnet-simple.h.
References AmNnetSimple::Info(), and AmNnetSimple::priors_.
Referenced by DecodableAmNnetSimpleParallel::DecodableAmNnetSimpleParallel(), and main().
| void Read | ( | std::istream & | is, | 
| bool | binary | ||
| ) | 
Definition at line 47 of file am-nnet-simple.cc.
References kaldi::nnet3::ExpectToken(), AmNnetSimple::left_context_, AmNnetSimple::nnet_, AmNnetSimple::priors_, Nnet::Read(), kaldi::ReadBasicType(), AmNnetSimple::right_context_, and AmNnetSimple::SetContext().
Referenced by AmNnetSimple::AmNnetSimple(), main(), and Nnet::Read().
      
  | 
  inline | 
Minimum right context required to compute an output.
Definition at line 86 of file am-nnet-simple.h.
References AmNnetSimple::right_context_.
| void SetContext | ( | ) | 
This function works out the left_context_ and right_context_ variables from the network (it's a rather complex calculation).
You should call this if you have structurally changed the nnet without calling SetNnet(), e.g. using non-const GetNnet().
Definition at line 96 of file am-nnet-simple.cc.
References kaldi::nnet3::ComputeSimpleNnetContext(), kaldi::nnet3::IsSimpleNnet(), KALDI_ERR, AmNnetSimple::left_context_, AmNnetSimple::nnet_, and AmNnetSimple::right_context_.
Referenced by AmNnetSimple::AmNnetSimple(), AmNnetSimple::IvectorDim(), main(), AmNnetSimple::Read(), and AmNnetSimple::SetNnet().
| void SetNnet | ( | const Nnet & | nnet | ) | 
Definition at line 59 of file am-nnet-simple.cc.
References KALDI_WARN, AmNnetSimple::nnet_, Nnet::OutputDim(), AmNnetSimple::priors_, and AmNnetSimple::SetContext().
Referenced by AmNnetSimple::GetNnet(), and main().
| void SetPriors | ( | const VectorBase< BaseFloat > & | priors | ) | 
Definition at line 70 of file am-nnet-simple.cc.
References VectorBase< Real >::Dim(), KALDI_ERR, AmNnetSimple::nnet_, Nnet::OutputDim(), and AmNnetSimple::priors_.
Referenced by AmNnetSimple::GetNnet(), main(), and kaldi::nnet3::SetPriors().
| void Write | ( | std::ostream & | os, | 
| bool | binary | ||
| ) | const | 
Definition at line 34 of file am-nnet-simple.cc.
References AmNnetSimple::left_context_, AmNnetSimple::nnet_, AmNnetSimple::priors_, AmNnetSimple::right_context_, Nnet::Write(), kaldi::WriteBasicType(), and kaldi::WriteToken().
Referenced by AmNnetSimple::AmNnetSimple(), and main().
      
  | 
  private | 
Definition at line 107 of file am-nnet-simple.h.
Referenced by AmNnetSimple::LeftContext(), AmNnetSimple::Read(), AmNnetSimple::SetContext(), and AmNnetSimple::Write().
      
  | 
  private | 
Definition at line 102 of file am-nnet-simple.h.
Referenced by AmNnetSimple::GetNnet(), AmNnetSimple::Info(), AmNnetSimple::InputDim(), AmNnetSimple::IvectorDim(), AmNnetSimple::NumPdfs(), AmNnetSimple::Read(), AmNnetSimple::SetContext(), AmNnetSimple::SetNnet(), AmNnetSimple::SetPriors(), and AmNnetSimple::Write().
Definition at line 103 of file am-nnet-simple.h.
Referenced by AmNnetSimple::Info(), AmNnetSimple::Priors(), AmNnetSimple::Read(), AmNnetSimple::SetNnet(), AmNnetSimple::SetPriors(), and AmNnetSimple::Write().
      
  | 
  private | 
Definition at line 108 of file am-nnet-simple.h.
Referenced by AmNnetSimple::Read(), AmNnetSimple::RightContext(), AmNnetSimple::SetContext(), and AmNnetSimple::Write().