Menu

Is this library thread-safe?

2018-05-29
2018-05-29
  • Mojtaba Hosseini

    Hi,

    Is this lib thread-safe? I mean is it safe to have two threads one updating the model and the other one predicting, at the same time?

    Thanks,

     
    • Stefan Klanke

      Stefan Klanke - 2018-05-29

      Hey,
      No, unfortunately this LWPR implementation is not thread safe. You shouldn't even call the predict functions from several threads at once, since there are some shared vectors that keep the scaled inputs etc.
      Best regards,
      Stefan

       

Log in to post a comment.

MongoDB Logo MongoDB