Skip to content

Models with BatchNorm layers cause errors with Stacktraces under DP #11

@ikanher

Description

@ikanher

When running under DP, Opacus checks that the models don't have batch normalization layers, that are unsupported under DP, and throws an error if such exists.

This error has the full stacktrace and is difficult to interpret. Instead we should return a nice error to the user that has a clear meaning, likely wrapped insider a typer.BadParameter().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions