[mlpack-git] [mlpack/mlpack] psgd simple (#635)
Ryan Curtin
notifications at github.com
Wed May 4 10:01:21 EDT 2016
> + const size_t numFunctions = function.NumFunctions();
> +
> + // To keep track of where we are and how things are going.
> + double overallObjective = 0;
> + //get maximum number of threads that will be running. with is defined by OMP_NUM_THREADS
> + size_t num_thread=omp_get_max_threads();
> +
> +
> + //vector of iterate. length of tIterate is same as number of threads available.
> + std::vector<arma::mat> tIterate;
> +
> + //initializing each element of tIterate with initial iterate value
> + for(size_t i=0;i<num_thread;i++)
> + {
> + tIterate.push_back(iterate);
> + }
You could probably do this initialization in parallel too.
---
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#r62043312
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160504/713bfe5b/attachment.html>
More information about the mlpack-git
mailing list