NnetSimpleLoopedComputationOptions Struct Reference

#include <decodable-simple-looped.h>

Collaboration diagram for NnetSimpleLoopedComputationOptions:

Public Member Functions

 NnetSimpleLoopedComputationOptions ()
 
void Check () const
 
void Register (OptionsItf *opts)
 

Public Attributes

int32 extra_left_context_initial
 
int32 frame_subsampling_factor
 
int32 frames_per_chunk
 
BaseFloat acoustic_scale
 
bool debug_computation
 
NnetOptimizeOptions optimize_config
 
NnetComputeOptions compute_config
 

Detailed Description

Definition at line 46 of file decodable-simple-looped.h.

Constructor & Destructor Documentation

◆ NnetSimpleLoopedComputationOptions()

Member Function Documentation

◆ Check()

◆ Register()

void Register ( OptionsItf opts)
inline

Definition at line 67 of file decodable-simple-looped.h.

References OptionsItf::Register(), NnetComputeOptions::Register(), and NnetOptimizeOptions::Register().

Referenced by main().

67  {
68  opts->Register("extra-left-context-initial", &extra_left_context_initial,
69  "Extra left context to use at the first frame of an utterance (note: "
70  "this will just consist of repeats of the first frame, and should not "
71  "usually be necessary.");
72  opts->Register("frame-subsampling-factor", &frame_subsampling_factor,
73  "Required if the frame-rate of the output (e.g. in 'chain' "
74  "models) is less than the frame-rate of the original "
75  "alignment.");
76  opts->Register("acoustic-scale", &acoustic_scale,
77  "Scaling factor for acoustic log-likelihoods");
78  opts->Register("frames-per-chunk", &frames_per_chunk,
79  "Number of frames in each chunk that is separately evaluated "
80  "by the neural net. Measured before any subsampling, if the "
81  "--frame-subsampling-factor options is used (i.e. counts "
82  "input frames. This is only advisory (may be rounded up "
83  "if needed.");
84  opts->Register("debug-computation", &debug_computation, "If true, turn on "
85  "debug for the actual computation (very verbose!)");
86 
87  // register the optimization options with the prefix "optimization".
88  ParseOptions optimization_opts("optimization", opts);
89  optimize_config.Register(&optimization_opts);
90 
91  // register the compute options with the prefix "computation".
92  ParseOptions compute_opts("computation", opts);
93  compute_config.Register(&compute_opts);
94  }
void Register(OptionsItf *opts)
Definition: nnet-optimize.h:84
void Register(OptionsItf *opts)
Definition: nnet-compute.h:42

Member Data Documentation

◆ acoustic_scale

◆ compute_config

NnetComputeOptions compute_config

Definition at line 53 of file decodable-simple-looped.h.

◆ debug_computation

bool debug_computation

Definition at line 51 of file decodable-simple-looped.h.

◆ extra_left_context_initial

int32 extra_left_context_initial

Definition at line 47 of file decodable-simple-looped.h.

Referenced by DecodableNnetSimpleLoopedInfo::Init().

◆ frame_subsampling_factor

◆ frames_per_chunk

int32 frames_per_chunk

Definition at line 49 of file decodable-simple-looped.h.

Referenced by DecodableNnetSimpleLoopedInfo::Init().

◆ optimize_config

NnetOptimizeOptions optimize_config

Definition at line 52 of file decodable-simple-looped.h.

Referenced by DecodableNnetSimpleLoopedInfo::Init().


The documentation for this struct was generated from the following file: