20 #ifndef KALDI_NNET3_NNET_COMPILE_LOOPED_H_ 21 #define KALDI_NNET3_NNET_COMPILE_LOOPED_H_ 62 const NnetOptimizeOptions &optimize_opts,
63 const ComputationRequest &request1,
64 const ComputationRequest &request2,
65 const ComputationRequest &request3,
76 int32 frame_subsampling_factor,
77 int32 advised_chunk_size);
164 int32 frame_subsampling_factor,
165 int32 ivector_period,
166 int32 left_context_begin,
169 ComputationRequest *request1,
170 ComputationRequest *request2,
171 ComputationRequest *request3);
183 int32 frame_subsampling_factor,
184 int32 ivector_period,
185 int32 extra_left_context_begin,
186 int32 extra_right_context,
188 ComputationRequest *request1,
189 ComputationRequest *request2,
190 ComputationRequest *request3);
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void ModifyNnetIvectorPeriod(int32 ivector_period, Nnet *nnet)
This function modifies the descriptors in the neural network to change the periodicity with which it ...
int32 GetChunkSize(const Nnet &nnet, int32 frame_subsampling_factor, int32 advised_chunk_size)
void CreateLoopedComputationRequest(const Nnet &nnet, int32 chunk_size, int32 frame_subsampling_factor, int32 ivector_period, int32 left_context_begin, int32 right_context, int32 num_sequences, ComputationRequest *request1, ComputationRequest *request2, ComputationRequest *request3)
This function creates computation request suitable for giving to ComputeLooped(). ...
void NnetComputation(const Nnet &nnet, const CuMatrixBase< BaseFloat > &input, bool pad_input, CuMatrixBase< BaseFloat > *output)
Does the basic neural net computation, on a sequence of data (e.g.
This file contains some miscellaneous functions dealing with class Nnet.
void CompileLooped(const Nnet &nnet, const NnetOptimizeOptions &optimize_opts, const ComputationRequest &request1, const ComputationRequest &request2, const ComputationRequest &request3, NnetComputation *computation)
CompileLooped() provides an internal interface for 'looped' computation.
void CreateLoopedComputationRequestSimple(const Nnet &nnet, int32 chunk_size, int32 frame_subsampling_factor, int32 ivector_period, int32 extra_left_context_begin, int32 extra_right_context, int32 num_sequences, ComputationRequest *request1, ComputationRequest *request2, ComputationRequest *request3)
This function is deprecated.