Skip to content

Add bicubic and trilinear modes to interpolate / Upsample #1

Open

Description

@voidstackloop

Summary

interpolate / Upsample currently supports "nearest" and "bilinear" modes (see src/python.rs around lines 2733 and 8906, and crates/oxideon-core/src/vision_ops.rs). Adding "bicubic" (for 4D [N, C, H, W] tensors) and "trilinear" (for 5D [N, C, D, H, W] tensors) with align_corners support will bring Oxideon closer to full PyTorch parity for vision and 3D/video workloads.

Relevant Files

  • crates/oxideon-core/src/vision_ops.rs
  • src/python.rs (interpolate, Upsample)
  • tests/ (add parity tests against torch.nn.functional.interpolate)

Acceptance Criteria

  • Implement bicubic 2D interpolation (forward + autograd backward) in oxideon-core.
  • Implement trilinear 3D interpolation (forward + autograd backward) in oxideon-core.
  • Expose both modes in Python ox.nn.functional.interpolate and ox.nn.Upsample.
  • Add unit tests verifying forward outputs and gradients against PyTorch (rtol=1e-4, atol=1e-5).

Activity

  1. added
    enhancement
    help wanted
    good first issue
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehelp wanted

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions