Skip to content

Commit

Permalink
Implement QuantizedTanh (#2975)
Browse files Browse the repository at this point in the history
Signed-off-by: Daemyung Jang <quic_daemyung@quicinc.com>
  • Loading branch information
quic-daemyung committed May 23, 2024
1 parent 245d12b commit 49e8bde
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,14 @@ def get_functional_args(self, x):
return (x, ), {}


@QuantizationMixin.implements(nn.Tanh)
class QuantizedTanh(_QuantizedUnaryOpMixin, nn.Tanh):
""" Quantized Tanh """

def get_functional_args(self, x):
return (x,), {}


@QuantizationMixin.implements(aimet_ops.Add)
class QuantizedAdd(_QuantizedBinaryOpMixin, aimet_ops.Add):
""" Quantized Add """
Expand Down

0 comments on commit 49e8bde

Please sign in to comment.