提交 ff98e3c1 编写于 作者: L liaogang

ENH: Remove comments

上级 383b96f3
...@@ -20,13 +20,11 @@ namespace paddle { ...@@ -20,13 +20,11 @@ namespace paddle {
namespace memory { namespace memory {
namespace detail { namespace detail {
// SystemAllocator is the parent class of CPUAllocator and /**
// GPUAllocator. A BuddyAllocator object uses a SystemAllocator* * \brief SystemAllocator is the parent class of CPUAllocator and GPUAllocator.
// pointing to the underlying system allocator. An alternative to * A BuddyAllocator object uses a SystemAllocator* pointing to the
// this class hierarchy is to pass a system allocator class to * underlying system allocator.
// BuddyAllocator as a template parameter. This approach makes */
// BuddyAllocator a class template, and it's very complicated
// algorithm would make the buddy_allocator.h messy.
class SystemAllocator { class SystemAllocator {
public: public:
virtual ~SystemAllocator() {} virtual ~SystemAllocator() {}
......
...@@ -65,7 +65,6 @@ size_t GpuMinChunkSize() { ...@@ -65,7 +65,6 @@ size_t GpuMinChunkSize() {
} }
size_t GpuMaxChunkSize() { size_t GpuMaxChunkSize() {
// Allow to allocate the maximum chunk size is roughly 3% of CPU memory.
size_t total = 0; size_t total = 0;
size_t available = 0; size_t available = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册