提交 8e490335 编写于 作者: Y Yi Wang

Fix Google Style

上级 b984ed9d
...@@ -6,16 +6,16 @@ namespace platform { ...@@ -6,16 +6,16 @@ namespace platform {
namespace detail { namespace detail {
class PlacePrinter : public boost::static_visitor<> { class PlacePrinter : public boost::static_visitor<> {
public: public:
PlacePrinter(std::ostream &os) : os_(os) {} PlacePrinter(std::ostream &os) : os_(os) {}
void operator()(const CpuPlace &) { os_ << "CpuPlace"; } void operator()(const CpuPlace &) { os_ << "CpuPlace"; }
void operator()(const GpuPlace &p) { os_ << "GpuPlace(" << p.device << ")"; } void operator()(const GpuPlace &p) { os_ << "GpuPlace(" << p.device << ")"; }
private: private:
std::ostream &os_; std::ostream &os_;
}; };
} // namespace detail } // namespace detail
static Place the_default_place; static Place the_default_place;
...@@ -42,5 +42,5 @@ std::ostream &operator<<(std::ostream &os, const Place &p) { ...@@ -42,5 +42,5 @@ std::ostream &operator<<(std::ostream &os, const Place &p) {
return os; return os;
} }
} // namespace platform } // namespace platform
} // namespace paddle } // namespace paddle
...@@ -45,5 +45,5 @@ bool places_are_same_class(const Place &, const Place &); ...@@ -45,5 +45,5 @@ bool places_are_same_class(const Place &, const Place &);
std::ostream &operator<<(std::ostream &, const Place &); std::ostream &operator<<(std::ostream &, const Place &);
} // namespace platform } // namespace platform
} // namespace paddle } // namespace paddle
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册