TimeHeightConvolutionComponent::PrecomputedIndexes Class Reference

#include <nnet-convolutional-component-temp.h>

Inheritance diagram for TimeHeightConvolutionComponent::PrecomputedIndexes:
Collaboration diagram for TimeHeightConvolutionComponent::PrecomputedIndexes:

Public Member Functions

 PrecomputedIndexes ()
 
 PrecomputedIndexes (const PrecomputedIndexes &other)
 
virtual PrecomputedIndexesCopy () const
 
virtual void Write (std::ostream &os, bool binary) const
 
virtual void Read (std::istream &os, bool binary)
 
virtual std::string Type () const
 
virtual ~PrecomputedIndexes ()
 
 PrecomputedIndexes ()
 
 PrecomputedIndexes (const PrecomputedIndexes &other)
 
virtual PrecomputedIndexesCopy () const
 
virtual void Write (std::ostream &os, bool binary) const
 
virtual void Read (std::istream &os, bool binary)
 
virtual std::string Type () const
 
virtual ~PrecomputedIndexes ()
 
- Public Member Functions inherited from ComponentPrecomputedIndexes
virtual ~ComponentPrecomputedIndexes ()
 

Public Attributes

time_height_convolution::ConvolutionComputation computation
 

Additional Inherited Members

- Static Public Member Functions inherited from ComponentPrecomputedIndexes
static ComponentPrecomputedIndexesReadNew (std::istream &is, bool binary)
 
static ComponentPrecomputedIndexesNewComponentPrecomputedIndexesOfType (const std::string &cpi_type)
 

Detailed Description

Definition at line 286 of file nnet-convolutional-component-temp.h.

Constructor & Destructor Documentation

◆ PrecomputedIndexes() [1/4]

PrecomputedIndexes ( )
inline

Definition at line 288 of file nnet-convolutional-component-temp.h.

288 { }

◆ PrecomputedIndexes() [2/4]

◆ ~PrecomputedIndexes() [1/2]

virtual ~PrecomputedIndexes ( )
inlinevirtual

Definition at line 297 of file nnet-convolutional-component-temp.h.

297 { }

◆ PrecomputedIndexes() [3/4]

PrecomputedIndexes ( )
inline

Definition at line 288 of file nnet-convolutional-component.h.

288 { }

◆ PrecomputedIndexes() [4/4]

◆ ~PrecomputedIndexes() [2/2]

virtual ~PrecomputedIndexes ( )
inlinevirtual

Member Function Documentation

◆ Copy() [1/2]

◆ Copy() [2/2]

virtual PrecomputedIndexes* Copy ( ) const
virtual

◆ Read() [1/2]

virtual void Read ( std::istream &  os,
bool  binary 
)
virtual

◆ Read() [2/2]

void Read ( std::istream &  os,
bool  binary 
)
virtual

Implements ComponentPrecomputedIndexes.

Definition at line 660 of file nnet-convolutional-component.cc.

References kaldi::ExpectOneOrTwoTokens(), and kaldi::nnet3::ExpectToken().

Referenced by TimeHeightConvolutionComponent::PrecomputedIndexes::PrecomputedIndexes(), TdnnComponent::PrecomputedIndexes::PrecomputedIndexes(), and TdnnComponent::Properties().

661  {
662  ExpectOneOrTwoTokens(is, binary,
663  "<TimeHeightConvolutionComponentPrecomputedIndexes>",
664  "<Computation>");
665  computation.Read(is, binary);
666  ExpectToken(is, binary, "</TimeHeightConvolutionComponentPrecomputedIndexes>");
667 }
void ExpectOneOrTwoTokens(std::istream &is, bool binary, const std::string &token1, const std::string &token2)
This function is like ExpectToken but for two tokens, and it will either accept token1 and then token...
Definition: text-utils.cc:536
static void ExpectToken(const std::string &token, const std::string &what_we_are_parsing, const std::string **next_token)

◆ Type() [1/2]

virtual std::string Type ( ) const
inlinevirtual

Implements ComponentPrecomputedIndexes.

Definition at line 294 of file nnet-convolutional-component-temp.h.

294  {
295  return "TimeHeightConvolutionComponentPrecomputedIndexes";
296  }

◆ Type() [2/2]

virtual std::string Type ( ) const
inlinevirtual

Implements ComponentPrecomputedIndexes.

Definition at line 294 of file nnet-convolutional-component.h.

294  {
295  return "TimeHeightConvolutionComponentPrecomputedIndexes";
296  }

◆ Write() [1/2]

virtual void Write ( std::ostream &  os,
bool  binary 
) const
virtual

◆ Write() [2/2]

void Write ( std::ostream &  os,
bool  binary 
) const
virtual

Implements ComponentPrecomputedIndexes.

Definition at line 652 of file nnet-convolutional-component.cc.

References kaldi::WriteToken().

Referenced by TimeHeightConvolutionComponent::PrecomputedIndexes::PrecomputedIndexes(), TdnnComponent::PrecomputedIndexes::PrecomputedIndexes(), and TdnnComponent::Properties().

653  {
654  WriteToken(os, binary, "<TimeHeightConvolutionComponentPrecomputedIndexes>");
655  WriteToken(os, binary, "<Computation>");
656  computation.Write(os, binary);
657  WriteToken(os, binary, "</TimeHeightConvolutionComponentPrecomputedIndexes>");
658 }
void WriteToken(std::ostream &os, bool binary, const char *token)
The WriteToken functions are for writing nonempty sequences of non-space characters.
Definition: io-funcs.cc:134
void Write(std::ostream &os, bool binary) const
Definition: convolution.cc:283

Member Data Documentation

◆ computation


The documentation for this class was generated from the following files: