Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
feynmanliang committed Jan 27, 2022
1 parent df400d2 commit 0a9f374
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/beanmachine/graph/mh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
* LICENSE file in the root directory of this source tree.
*/

#include <algorithm>
#include <boost/optional.hpp>
#include <boost/timer/progress_display.hpp>
#include <boost/utility/in_place_factory.hpp>
#include <boost/progress.hpp>
#include <boost/iostreams/stream.hpp>
#include <cmath>
#include <random>
#include <string>
#include <thread>
#include <vector>

#include "beanmachine/graph/distribution/distribution.h"
Expand Down Expand Up @@ -143,7 +139,7 @@ void MH::generate_sample() {
void MH::collect_samples(uint num_samples, InferConfig infer_config) {
graph->pd_begin(ProfilerEvent::NMC_INFER_COLLECT_SAMPLES);
boost::iostreams::stream< boost::iostreams::null_sink > nullOstream( ( boost::iostreams::null_sink() ) );
boost::timer::progress_display show_progress(
boost::progress_display show_progress(
num_samples,
graph->thread_index == 0 ? std::cout : nullOstream);
// if (graph->thread_index == 0)
Expand Down

0 comments on commit 0a9f374

Please sign in to comment.