Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copyMats MatchError #154

Open
winstrom opened this issue Mar 2, 2017 · 0 comments
Open

copyMats MatchError #154

winstrom opened this issue Mar 2, 2017 · 0 comments

Comments

@winstrom
Copy link

winstrom commented Mar 2, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant