Skip to content

Commit

Permalink
[src,doc] Fix several unrelated minor problems. Thanks: gaoxinglong
Browse files Browse the repository at this point in the history
  • Loading branch information
danpovey committed Mar 29, 2017
1 parent 8b458ae commit 13d300f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/doc/dnn3_scripts_context.dox
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace nnet3 {
compute this output without seeing a range of input frames. For example,
it may be impossible to compute the output without seeing the range of
't' values from t = 150 through t = 157. In this case (glossing over details),
we'd say that the network has a \b left-context of 3 and a \b right-context of 4.
we'd say that the network has a \b left-context of 4 and a \b right-context of 3.
The actual computation of the context is a bit more complex as it has to
take into account special cases like where, say, the behavior for odd and
even 't' values is different (c.f. Round() descriptors in
Expand Down
2 changes: 1 addition & 1 deletion src/nnet3/nnet-optimize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ void FixGotoOutputReordering(const Nnet &nnet,
FixGotoLabel(computation); // make sure the destination label of the goto statement was
// correct.
int32 goto_command_index = -1;
for (int32 c = computation->commands.size(); c >= 0; c--)
for (int32 c = computation->commands.size() - 1; c >= 0; c--)
if (computation->commands[c].command_type == kGotoLabel)
goto_command_index = c;
KALDI_ASSERT(goto_command_index > 0);
Expand Down
6 changes: 3 additions & 3 deletions src/nnet3/nnet-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ std::string PrintVectorPerUpdatableComponent(const Nnet &nnet,

/// This function returns true if the nnet has the following properties:
/// It has an output called "output" (other outputs are allowed but may be
/// ignored).
/// ignored).
/// It has an input called "input", and possibly an extra input called
/// "ivector", but no other inputs.
/// There are probably some other properties that we really ought to
Expand Down Expand Up @@ -160,8 +160,8 @@ void ConvertRepeatedToBlockAffine(Nnet *nnet);
/// Info() function (we need this in the CTC code).
std::string NnetInfo(const Nnet &nnet);

/// This function sets the dropout proportion in all dropout component to
/// dropout_proportion value.
/// This function sets the dropout proportion in all dropout components to
/// the value 'dropout_proportion'
void SetDropoutProportion(BaseFloat dropout_proportion, Nnet *nnet);

/// This function finds a list of components that are never used, and outputs
Expand Down

0 comments on commit 13d300f

Please sign in to comment.