[mlpack-git] [mlpack/mlpack] psgd simple (#635)
ranjan
notifications at github.com
Mon May 16 05:44:09 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);
> + }
Yes It can be done.
---
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#r63330727
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160516/cceba84c/attachment.html>
More information about the mlpack-git
mailing list