Skip to content

Conversation

@Garic152
Copy link
Contributor

I have been working a bit more on the multiLogReg algorithm and wanted to share my latest progress.

The main part of the algorithm is almost done, but unfortunately we get a segfault error due to a casting problem in the `innerconvergence' loop. I have double-checked the code with the systemds version output, where I wasnt able to find any error, so the error origin must be inside this loop.

eric@daphne-container:/daphne$ ./bin/daphne scripts/algorithms/test_multilogreg.daph 
terminate called after throwing an instance of 'std::runtime_error'
  what():  InferencePass.cpp:472 -> InferencePass.cpp:169 -> InferTypesOpInterface failed with the following message [ type inference returned an unknown result type for some op, but partial inference is not allowed at this point: daphne.cast ]
    | Source file -> "/daphne/scripts/algorithms/multiLogReg.daph":121:4
    | 
121 |     while(innverconverge != 1.0) {
    |     ^~~

I have also added a small test file where this error is reproducible.

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

Successfully merging this pull request may close these issues.

1 participant