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

Fix Google Style

上级 b984ed9d
......@@ -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
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册