Skip to content

Commit

Permalink
Add leaky relu metatype (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-lyakhov committed Nov 8, 2021
1 parent 6f91efa commit 53e8a64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nncf/torch/pruning/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
MulMetatype,
PTOutputNoopMetatype,
PRELUMetatype,
LeakyRELUMetatype,
RELUMetatype,
SigmoidMetatype,
SILUMetatype,
Expand Down Expand Up @@ -105,7 +106,7 @@ class PTOutputPruningOp(OutputPruningOp, PTPruner):
@PT_PRUNING_OPERATOR_METATYPES.register('identity_mask_propagation')
class PTIdentityMaskForwardPruningOp(IdentityMaskForwardPruningOp, PTPruner):
subtypes = [HardTanhMetatype, TanhMetatype, RELUMetatype, PRELUMetatype, ELUMetatype, GELUMetatype, SigmoidMetatype,
SoftmaxMetatype, AvgPool2dMetatype, MaxPool2dMetatype, DropoutMetatype, SILUMetatype]
SoftmaxMetatype, AvgPool2dMetatype, MaxPool2dMetatype, DropoutMetatype, SILUMetatype, LeakyRELUMetatype]
additional_types = ['h_sigmoid', 'h_swish', 'RELU']


Expand Down

0 comments on commit 53e8a64

Please sign in to comment.