You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide default mapping function for trivial pytorch functions from torch.nn #25
To reduce the amount of redundant code, we could implement default mapper functions for these pytorch native operations. This default mapper function could be applied to a nn.Module ore nir.node when the framework specific mapper function does not supply the operation.
Activity
bvogginger commentedon Mar 27, 2024
I'm working on this issue.
Default mapping function from NIR to torch for simple primitives
Default mapping function from torch to NIR for simple primitives
Jegp commentedon Feb 18, 2025
After porting to
torch.fxthere's a need to revisit this; we need default mappings from NIR to Torch (https://github.com/neuromorphs/NIRTorch/blob/main/nirtorch/nir_interpreter.py#L60) and from Torch to NIR (https://github.com/neuromorphs/NIRTorch/blob/main/nirtorch/torch_tracer.py#L63)