MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / Run

Method Run

rtpose_wrapper/src/caffe/parallel.cpp:421–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419
420template<typename Dtype>
421void P2PSync<Dtype>::Run(const vector<int>& gpus) {
422 vector<shared_ptr<P2PSync<Dtype> > > syncs(gpus.size());
423 Prepare(gpus, &syncs);
424
425 LOG(INFO)<< "Starting Optimization";
426
427 for (int i = 1; i < syncs.size(); ++i) {
428 syncs[i]->StartInternalThread();
429 }
430
431 // Run root solver on current thread
432 solver_->Solve();
433
434 for (int i = 1; i < syncs.size(); ++i) {
435 syncs[i]->StopInternalThread();
436 }
437}
438
439INSTANTIATE_CLASS(Params);
440INSTANTIATE_CLASS(GPUParams);

Callers 2

trainFunction · 0.45
RunLeastSquaresSolverMethod · 0.45

Calls 4

StartInternalThreadMethod · 0.80
StopInternalThreadMethod · 0.80
sizeMethod · 0.45
SolveMethod · 0.45

Tested by 1

RunLeastSquaresSolverMethod · 0.36