#include <nnet-convolutional-component-temp.h>
◆ PrecomputedIndexes() [1/4]
◆ PrecomputedIndexes() [2/4]
◆ ~PrecomputedIndexes() [1/2]
◆ PrecomputedIndexes() [3/4]
◆ PrecomputedIndexes() [4/4]
◆ ~PrecomputedIndexes() [2/2]
◆ Copy() [1/2]
◆ Copy() [2/2]
◆ 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 689 of file nnet-tdnn-component.cc.
References kaldi::ExpectOneOrTwoTokens(), kaldi::nnet3::ExpectToken(), kaldi::ReadBasicType(), and kaldi::ReadIntegerVector().
692 "<TdnnComponentPrecomputedIndexes>",
697 ExpectToken(is, binary,
"</TdnnComponentPrecomputedIndexes>");
void ReadBasicType(std::istream &is, bool binary, T *t)
ReadBasicType is the name of the read function for bool, integer types, and floating-point types...
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...
void ReadIntegerVector(std::istream &is, bool binary, std::vector< T > *v)
Function for reading STL vector of integer types.
static void ExpectToken(const std::string &token, const std::string &what_we_are_parsing, const std::string **next_token)
std::vector< int32 > row_offsets
◆ Type() [1/2]
virtual std::string Type |
( |
| ) |
const |
|
inlinevirtual |
◆ Type() [2/2]
virtual std::string Type |
( |
| ) |
const |
|
inlinevirtual |
◆ 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 679 of file nnet-tdnn-component.cc.
References kaldi::WriteBasicType(), kaldi::WriteIntegerVector(), and kaldi::WriteToken().
681 WriteToken(os, binary,
"<TdnnComponentPrecomputedIndexes>");
686 WriteToken(os, binary,
"</TdnnComponentPrecomputedIndexes>");
void WriteToken(std::ostream &os, bool binary, const char *token)
The WriteToken functions are for writing nonempty sequences of non-space characters.
std::vector< int32 > row_offsets
void WriteIntegerVector(std::ostream &os, bool binary, const std::vector< T > &v)
Function for writing STL vectors of integer types.
void WriteBasicType(std::ostream &os, bool binary, T t)
WriteBasicType is the name of the write function for bool, integer types, and floating-point types...
◆ row_offsets
std::vector< int32 > row_offsets |
◆ row_stride
The documentation for this class was generated from the following files: