[mlpack-git] [mlpack/mlpack] psgd simple (#635)

Ryan Curtin notifications at github.com
Wed May 4 10:07:12 EDT 2016


> +  }
> +  
> +  //k is taken to count number of thread which give valid output i.e not inf or not nan 
> +  int k=0;
> +  for(size_t i=0;i<num_thread;i++)
> +  {
> +
> +     overallObjective=0;
> +     for (size_t i = 0; i < numFunctions; ++i)
> +     {
> +       overallObjective += function.Evaluate(sumIterate,i);
> +     }
> +
> +     if (!(std::isnan(overallObjective) || std::isinf(overallObjective)))
> +     {
> +       sumIterate+=tIterate[i];

Do you think we could use an OpenMP reduction operator here?  I think there might be some difficulty; I have not thought it through too in-depth so I don't know if it's completely feasible.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/635/files/9758b9622355ff97e8afa07b907e3083869fce17#r62044531
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160504/2adab372/attachment-0001.html>


More information about the mlpack-git mailing list