Skip to content

Commit c56b8c0

Browse files
authored
[src, nnet3] fix declaration of GetDiscriminativeNnetExampleSize and GetNnetChainExampleSize (#4685)
* [src, nnet3] fix declartion of GetDiscriminativeNnetExampleSize and GetNnetChainExampleSize * [src,nnet3] Fix a bug that the function declaration of MergeDiscriminativeExamples does not match its definition.
1 parent 054af6b commit c56b8c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/nnet3/nnet-chain-example.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ typedef RandomAccessTableReader<KaldiObjectHolder<NnetChainExample > > RandomAcc
226226
/// This function returns the 'size' of a chain example as defined for purposes
227227
/// of merging egs, which is defined as the largest number of Indexes in any of
228228
/// the inputs or outputs of the example.
229-
int32 GetChainNnetExampleSize(const NnetChainExample &a);
229+
int32 GetNnetChainExampleSize(const NnetChainExample &a);
230230

231231

232232
/// This class is responsible for arranging examples in groups that have the

src/nnet3/nnet-discriminative-example.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ struct NnetDiscriminativeExampleStructureCompare {
167167
MergeExamples() routine while avoiding having to rewrite code.
168168
*/
169169
void MergeDiscriminativeExamples(
170-
std::vector<NnetDiscriminativeExample> *input,
171170
bool compress,
171+
std::vector<NnetDiscriminativeExample> *input,
172172
NnetDiscriminativeExample *output);
173173

174174
// called from MergeDiscriminativeExamples, this function merges the Supervision
@@ -219,7 +219,7 @@ typedef RandomAccessTableReader<KaldiObjectHolder<NnetDiscriminativeExample > >
219219
/// This function returns the 'size' of a discriminative example as defined for
220220
/// purposes of merging egs, which is defined as the largest number of Indexes
221221
/// in any of the inputs or outputs of the example.
222-
int32 GetDiscriminativeNnetExampleSize(const NnetDiscriminativeExample &a);
222+
int32 GetNnetDiscriminativeExampleSize(const NnetDiscriminativeExample &a);
223223

224224

225225
/// This class is responsible for arranging examples in groups that have the

0 commit comments

Comments
 (0)