Skip to content

Clean and extract Parameter functionalities. #2272

@reyoung

Description

@reyoung

As we need to develop paddle::Parameters concept in C++ (which described in PR #2249), the paddle::Parameter will be heavily used. But paddle::Parameter is heavy and mixes many functionalities in ONE Class. It is necessary to clean paddle::Parameter first. The following jobs should be done.

In PR #2271, the several things are fixed.

  • Extract paddle::getTlsTempBufs to parameter::getThreadLocalBuffer.
  • Clean unused functions
  • Remove Parameter::getPrefetchMatrix function. getPrefetchMatrix is quite simple, should not be extracted as a member function.

The following jobs are under developing.

  • Extract ParameterUpdaterHook into ParameterUpdater.
  • Extract save/load/random functionalities to a global function or object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions