Skip to content

feat: Add Upsample2d node - #203

Open
arjityadav wants to merge 1 commit into
neuromorphs:mainfrom
arjityadav:feat/upsample2d
Open

arjityadav wants to merge 1 commit into
neuromorphs:mainfrom
arjityadav:feat/upsample2d

Conversation

@arjityadav

@arjityadav arjityadav commented Nov 5, 2026 •

Copy link
Copy Markdown

Closes #202.

Adds an Upsample2d primitive (integer scale factors, nearest or bilinear, align_corners) with the semantics of torch.nn.functional.interpolate:

  • node in nir/ir/upsample.py, registered for (de)serialization
  • type inference in NIRGraph.infer_types
  • tests: type inference (both modes, pool followed by upsample), argument validation, dict and HDF5 round trips
  • docs: row in the primitives table

All tests pass (76 passed, 5 skipped); ruff, black and isort clean.

This branch has not been deployed

No deployments
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.

Add an Upsample2d primitive (nearest / bilinear)

1 participant