Skip to content

Implementation details of grad_norm computation #13

@shuo-ouyang

Description

@shuo-ouyang

Hi guys, I am trying to implement SAM in MXNet and encounter two questions about grad_norm computation. When we compute SAM gradient e_w, should we calculate grad norm for each parameter, or just calculate the grad norm for all parameters at once? Hope for your advice.

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