Skip to content
Snippets Groups Projects
Commit 09c5489e authored by Dan Povey's avatar Dan Povey
Browse files

Small fix to my neural net code.

git-svn-id: https://svn.code.sf.net/p/kaldi/code/sandbox/dan@1728 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent d67613a3
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ static void ProcessFile(const MatrixBase<BaseFloat> &feats,
for (int32 i = 0; i < feats.NumRows(); i++) {
// Set up "input_frames".
for (int32 j = -left_context; j <= right_context; j++) {
int32 j2 = j;
int32 j2 = j + i;
if (j2 < 0) j2 = 0;
if (j2 >= feats.NumRows()) j2 = feats.NumRows() - 1;
SubVector<BaseFloat> src(feats, j2), dest(eg.input_frames,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment