copyMats MatchError
Opened this issue · 0 comments
winstrom commented
Hi,
While trying to get BIDMach running with an IMat input and not using a GPU, I got a MatchError from the copyMats function in Model.scala line 254.
I changed the code to:
if (useDouble) {
to(i) = from(i) match {
case aa:FMat => DMat(aa)
case aa:SMat => SDMat(aa)
case aa:DMat => aa;
case aa:SDMat => aa;
case aa:IMat => aa;
}
} else {
to(i) = from(i) match {
case aa:FMat => aa
case aa:SMat => aa
case aa:DMat => FMat(aa);
case aa:SDMat => SMat(aa);
case aa:IMat => aa;
}
}
which seemed to fix the issue.