#include <nnet-component-itf.h>
Public Member Functions | |
virtual ComponentPrecomputedIndexes * | Copy () const =0 |
virtual void | Write (std::ostream &os, bool binary) const =0 |
virtual void | Read (std::istream &os, bool binary)=0 |
virtual std::string | Type () const =0 |
virtual | ~ComponentPrecomputedIndexes () |
Static Public Member Functions | |
static ComponentPrecomputedIndexes * | ReadNew (std::istream &is, bool binary) |
static ComponentPrecomputedIndexes * | NewComponentPrecomputedIndexesOfType (const std::string &cpi_type) |
Definition at line 97 of file nnet-component-itf.h.
|
inlinevirtual |
Definition at line 107 of file nnet-component-itf.h.
|
pure virtual |
Implemented in SpecAugmentTimeMaskComponentPrecomputedIndexes, GeneralDropoutComponentPrecomputedIndexes, BackpropTruncationComponentPrecomputedIndexes, TdnnComponent::PrecomputedIndexes, TdnnComponent::PrecomputedIndexes, StatisticsPoolingComponentPrecomputedIndexes, StatisticsExtractionComponentPrecomputedIndexes, TimeHeightConvolutionComponent::PrecomputedIndexes, TimeHeightConvolutionComponent::PrecomputedIndexes, RestrictedAttentionComponent::PrecomputedIndexes, and DistributeComponentPrecomputedIndexes.
Referenced by Component::PrecomputeIndexes().
|
static |
Definition at line 55 of file nnet-component-itf.cc.
References KALDI_ASSERT, and ComponentPrecomputedIndexes::Type().
Referenced by ComponentPrecomputedIndexes::ReadNew().
|
pure virtual |
Implemented in SpecAugmentTimeMaskComponentPrecomputedIndexes, GeneralDropoutComponentPrecomputedIndexes, BackpropTruncationComponentPrecomputedIndexes, TdnnComponent::PrecomputedIndexes, TdnnComponent::PrecomputedIndexes, StatisticsPoolingComponentPrecomputedIndexes, StatisticsExtractionComponentPrecomputedIndexes, TimeHeightConvolutionComponent::PrecomputedIndexes, TimeHeightConvolutionComponent::PrecomputedIndexes, RestrictedAttentionComponent::PrecomputedIndexes, and DistributeComponentPrecomputedIndexes.
Referenced by NonlinearComponent::OutputDim(), Component::PrecomputeIndexes(), and ComponentPrecomputedIndexes::ReadNew().
|
static |
Definition at line 42 of file nnet-component-itf.cc.
References KALDI_ERR, ComponentPrecomputedIndexes::NewComponentPrecomputedIndexesOfType(), ComponentPrecomputedIndexes::Read(), and kaldi::ReadToken().
Referenced by Component::PrecomputeIndexes(), and NnetComputation::Read().
|
pure virtual |
Implemented in SpecAugmentTimeMaskComponentPrecomputedIndexes, GeneralDropoutComponentPrecomputedIndexes, BackpropTruncationComponentPrecomputedIndexes, TdnnComponent::PrecomputedIndexes, TdnnComponent::PrecomputedIndexes, StatisticsPoolingComponentPrecomputedIndexes, StatisticsExtractionComponentPrecomputedIndexes, TimeHeightConvolutionComponent::PrecomputedIndexes, TimeHeightConvolutionComponent::PrecomputedIndexes, RestrictedAttentionComponent::PrecomputedIndexes, and DistributeComponentPrecomputedIndexes.
Referenced by Component::Info(), ComponentPrecomputedIndexes::NewComponentPrecomputedIndexesOfType(), and Component::PrecomputeIndexes().
|
pure virtual |
Implemented in SpecAugmentTimeMaskComponentPrecomputedIndexes, GeneralDropoutComponentPrecomputedIndexes, BackpropTruncationComponentPrecomputedIndexes, TdnnComponent::PrecomputedIndexes, TdnnComponent::PrecomputedIndexes, StatisticsPoolingComponentPrecomputedIndexes, StatisticsExtractionComponentPrecomputedIndexes, TimeHeightConvolutionComponent::PrecomputedIndexes, TimeHeightConvolutionComponent::PrecomputedIndexes, RestrictedAttentionComponent::PrecomputedIndexes, and DistributeComponentPrecomputedIndexes.
Referenced by NonlinearComponent::OutputDim(), Component::PrecomputeIndexes(), and NnetComputation::Write().