Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LayerNormalization operator, Depth Anything example #44

Merged
merged 5 commits into from
Jan 23, 2024

Conversation

robertknight
Copy link
Owner

@robertknight robertknight commented Jan 22, 2024

Implement the LayerNormalization operator, which is ubiquitous in all transformer models, but was decomposed into other operators by PyTorch until recently (I think).

This was added to get the Depth Anything model working. Credit to https://github.com/fabio-sim/Depth-Anything-ONNX for the ONNX conversion.

depth-anything-rten

TODO:

  • Deserialization tests for LayerNormalization
  • Tests for align_corners impl

@robertknight robertknight merged commit 178ccdf into main Jan 23, 2024
1 check passed
@robertknight robertknight deleted the layer-norm-op branch January 23, 2024 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant