From 8e4903354ad69523d7661a9d675d5199f522d886 Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Mon, 19 Jun 2017 17:01:00 -0700 Subject: [PATCH] Fix Google Style --- paddle/platform/place.cc | 10 +++++----- paddle/platform/place.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/paddle/platform/place.cc b/paddle/platform/place.cc index d500c4cc7..1afd03c01 100644 --- a/paddle/platform/place.cc +++ b/paddle/platform/place.cc @@ -6,16 +6,16 @@ namespace platform { namespace detail { class PlacePrinter : public boost::static_visitor<> { -public: + public: PlacePrinter(std::ostream &os) : os_(os) {} void operator()(const CpuPlace &) { os_ << "CpuPlace"; } void operator()(const GpuPlace &p) { os_ << "GpuPlace(" << p.device << ")"; } -private: + private: std::ostream &os_; }; -} // namespace detail +} // namespace detail static Place the_default_place; @@ -42,5 +42,5 @@ std::ostream &operator<<(std::ostream &os, const Place &p) { return os; } -} // namespace platform -} // namespace paddle +} // namespace platform +} // namespace paddle diff --git a/paddle/platform/place.h b/paddle/platform/place.h index ca1b76ef4..489572c52 100644 --- a/paddle/platform/place.h +++ b/paddle/platform/place.h @@ -45,5 +45,5 @@ bool places_are_same_class(const Place &, const Place &); std::ostream &operator<<(std::ostream &, const Place &); -} // namespace platform -} // namespace paddle +} // namespace platform +} // namespace paddle -- GitLab