20 #ifndef KALDI_NNET3_NNET_TEST_UTILS_H_    21 #define KALDI_NNET3_NNET_TEST_UTILS_H_    50       allow_nonlinearity(true),
    51       allow_recursion(true),
    52       allow_clockwork(true),
    53       allow_multiple_inputs(true),
    54       allow_multiple_outputs(false),
    55       allow_final_nonlinearity(true),
    56       allow_use_of_x_dim(true),
    58       allow_statistics_pooling(true),
    66                             std::vector<std::string> *configs);
    72                                           std::vector<std::string> *configs);
   107     int32 num_supervised_frames,
 NnetExample is the input data and corresponding label (or labels) for one or more frames of input...
 
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
 
void GenerateSimpleNnetTrainingExample(int32 num_supervised_frames, int32 left_context, int32 right_context, int32 output_dim, int32 input_dim, int32 ivector_dim, NnetExample *example)
Low-level function that generates an nnet training example. 
 
bool allow_statistics_pooling
 
bool NnetParametersAreIdentical(const Nnet &nnet1, const Nnet &nnet2, BaseFloat threshold=1.0e-05)
Used for testing that the updatable parameters in two networks are the same. 
 
Abstract base-class for neural-net components. 
 
bool allow_multiple_outputs
 
This file contains some miscellaneous functions dealing with class Nnet. 
 
void ComputeExampleComputationRequestSimple(const Nnet &nnet, ComputationRequest *request, std::vector< Matrix< BaseFloat > > *inputs)
This function computes an example computation request, for testing purposes. 
 
bool allow_multiple_inputs
 
bool ExampleApproxEqual(const NnetExample &eg1, const NnetExample &eg2, BaseFloat delta)
Returns true if the examples are approximately equal (only intended to be used in testing)...
 
bool allow_final_nonlinearity
 
void GenerateConfigSequence(const NnetGenerationOptions &opts, std::vector< std::string > *configs)
Generates a sequence of at least one config files, output as strings, where the first in the sequence...
 
void GenerateConfigSequenceCompositeBlock(const NnetGenerationOptions &opts, std::vector< std::string > *configs)
Generate a config string with a composite component composed only of block affine, repeated affine, and natural gradient repeated affine components. 
 
Component * GenerateRandomSimpleComponent()
Generates random simple component for testing.