20 #ifndef KALDI_NNET3_NNET_COMPUTE_H_ 21 #define KALDI_NNET3_NNET_COMPUTE_H_ 43 opts->
Register(
"debug", &debug,
"If true, turn on " 44 "debug for the neural net computation (very verbose!) " 45 "Will be turned on regardless if --verbose >= 5");
71 Nnet *nnet_to_update);
80 Nnet *nnet_to_update);
97 void AcceptInput(
const std::string &node_name,
103 void AcceptInputs(
const Nnet &nnet,
104 const std::vector<NnetIo> &io);
124 void GetOutputDestructive(
const std::string &output_name,
177 void ExecuteCommand();
187 int32 GetIoMatrixIndex(
const std::string &node_name,
bool is_output);
194 void CheckNoPendingIo();
198 void GetPointers(
int32 indexes_multi_index,
201 void GetPointers(
int32 indexes_multi_index,
225 void DebugBeforeExecute(
int32 command,
228 void DebugAfterExecute(
int32 command,
230 double command_execution_time);
235 inline void SaveMemo(
int32 memo_index,
const Component &c,
void *memo);
241 inline void *GetMemo(
int32 memo_index);
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
std::vector< BaseFloat > matrices_written_stddevs
Abstract base-class for neural-net components.
void GetOutput(OnlineFeatureInterface *a, Matrix< BaseFloat > *output)
const NnetComputeOptions & options_
std::vector< CommandAttributes > command_attributes_
This file contains utilities for analyzing and checking computations, which are used in the optimizat...
This class represents a matrix that's stored on the GPU if we have one, and in memory if not...
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
std::vector< BaseFloat > submatrices_written_stddevs
The two main classes defined in this header are struct ComputationRequest, which basically defines a ...
std::vector< int32 > pending_commands_
std::vector< CuCompressedMatrixBase * > compressed_matrices_
Nnet * nnet_to_store_stats_
BaseFloat components_parameter_stddev
This class is used for a piece of a CuMatrix.
const NnetComputation & computation_
std::vector< CuMatrix< BaseFloat > > matrices_
void Register(OptionsItf *opts)
Matrix for CUDA computing.
std::vector< std::string > submatrix_strings_
class NnetComputer is responsible for executing the computation described in the "computation" object...
Class CuArray represents a vector of an integer or struct of type T.
std::vector< std::string > command_strings_
std::vector< void * > memos_