Skip to content

Commit

Permalink
Add torch to ONNX mapping for InstanceNorm (#2609)
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Chaitanya Gajula <quic_gsaichai@quicinc.com>
  • Loading branch information
quic-ristha authored Dec 19, 2023
1 parent 486ec81 commit 24ea3a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TrainingExtensions/torch/src/python/aimet_torch/onnx_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@
nn.MaxPool2d: ['MaxPool'],
nn.MaxPool3d: ['MaxPool'],
nn.LayerNorm: ['LayerNorm'], # Not a supported op in ONNX, adding this entry for usage by Connected Graph
nn.InstanceNorm2d: ['InstanceNormalization'],
nn.InstanceNorm1d: ['InstanceNormalization'],
nn.LeakyReLU: ['LeakyRelu'],
nn.Linear: ['Gemm', 'MatMul'],
nn.LogSoftmax: ['LogSoftmax'],
Expand Down

0 comments on commit 24ea3a9

Please sign in to comment.