Skip to content

Commit

Permalink
Feat (quantize): add support for Identity
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Jul 13, 2023
1 parent f93911e commit f1c9f27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/brevitas/graph/quantize_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
nn.AdaptiveAvgPool2d,
nn.AdaptiveAvgPool3d,
nn.PixelShuffle,
nn.PixelUnshuffle)
nn.PixelUnshuffle,
nn.Identity)

PRECISION_PRESERVING_MODULES = (
nn.Dropout,
Expand All @@ -42,7 +43,8 @@
nn.MaxPool2d,
nn.MaxPool3d,
nn.PixelShuffle,
nn.PixelUnshuffle)
nn.PixelUnshuffle,
nn.Identity)


def inp_placeholder_handler(model, input_quantizer):
Expand Down

0 comments on commit f1c9f27

Please sign in to comment.