Closed danijel3 closed 3 years ago
Thanks for digging into it! Could you send a PR with a fix please?
@danpovey, we have vector-scale
which is used in recipes, and copy-vector
which is never used with either of the two switches. The fixed version should likely supersede vector-scale
, since it's more powerful. We can check in an executable shell script named vector-scale
that just exec
s copy-vector, or a softlink.
Is these something I'm missing?
@danpovey , correction, copy-vector --change-dim
is used. In steps/train_sgmm2.sh and steps/train_sgmm2_group.sh which are dead wood by now.
X-ref: fixed in #4515.
Thanks!
I'm not sure if I'm crazy, but this seems like a pretty basic bug: The
--scale
and--change-dim
options don't work in the "copy-vector" program. To test it, I run the following code:The correct output should be obviously:
The error is in this line: https://github.com/kaldi-asr/kaldi/blob/58363408a8efc78d896ab2cc83d215cac314b4e6/src/bin/copy-vector.cc#L96
The existing line:
Should be:
Now how can it be that such a basic error went under the radar for this many years? I looked for all uses of
copy-vector
inegs
and it seems thatscale
wasn't used once. I'm leaving this as an issue, because it may raise questions on some other bugs that I'm not aware of.