Skip to content

Allow users to specify the name of moving mean and variance in batch_norm API. #8068

@qingqing01

Description

@qingqing01

The moving mean and variance are parts of models in batch norm operators. They are calculated in the training and will be used in the inference. They are persistable variable in Fluid. If allowing users to specify the name of moving mean and variance in batch_norm API, it's convenient to share these two arguments. It's also convenient for the model conversion by other frameworks, like PaddlePaddle/models#617 .

If the name is not specified in the model conversion, the conversion tool needs to generate names for parameters and other persistable variables by following the rule of name generation in Fluid. But the rules of name generation for parameters and other persistable variables are ununified, it's a little complex.

In addition, the Fluid should have mechanisms to allow users to shared any persistable variable conveniently.

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