Skip to content

Expand trace_to_opgraph lowering for layer_norm, batch_norm2d, pooling, cat, and split #8

Open

Description

@voidstackloop

Summary

crates/oxideon-core/src/trace.rs (trace_to_opgraph / trace_and_compile) lowers traced models into OpGraph and runs constant folding, CSE, DCE, and pattern fusion (Conv+BN+ReLU, FusedAttention, fused elementwise kernels).

Expanding lowering coverage to additional common neural network operations will allow full ResNet, ViT, and Transformer blocks to be traced and compiled end-to-end without falling back.

Relevant Files

  • crates/oxideon-core/src/trace.rs
  • crates/oxideon-core/src/opgraph.rs
  • crates/oxideon-core/tests/opgraph_fusion.rs

Acceptance Criteria

  • Lower layer_norm, batch_norm2d, max_pool2d, avg_pool2d, cat, and split in trace_to_opgraph.
  • Add end-to-end trace + compile parity tests for a ResNet block and a Transformer encoder block.

Activity

  1. added
    enhancement
    help wanted
    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

    enhancementhelp wanted

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions