Skip to content

#4486 - Reconstruct Ceil and Round ops for DLA compatibility#1050

Open
iabhi4 wants to merge 1 commit intoonnx:10.15-GAfrom
iabhi4:fix/dla-ceil-round-ops
Open

#4486 - Reconstruct Ceil and Round ops for DLA compatibility#1050
iabhi4 wants to merge 1 commit intoonnx:10.15-GAfrom
iabhi4:fix/dla-ceil-round-ops

Conversation

@iabhi4
Copy link
Copy Markdown

@iabhi4 iabhi4 commented Mar 16, 2026

Closes NVIDIA/TensorRT#4486

Ceil and Round both lower to IUnaryLayer, which only supports kABS on DLA.
Reconstruct using DLA-native primitives:

- Ceil: -floor(-x) via IUnaryLayer(kFLOOR) + IElementWiseLayer(kPROD)
- Round: floor(x+0.5) via IElementWiseLayer(kSUM) + IUnaryLayer(kFLOOR)

Add test_round to onnx_backend_test.py.

Ceil and Round map to IUnaryLayer which only supports kABS on DLA.
Reconstruct Ceil as -floor(-x) and Round as floor(x+0.5) using
IUnaryLayer(kFLOOR) and IElementWiseLayer, both DLA-native.

Add test_round to onnx_backend_test.py.

Signed-off-by: iabhi4 <iamonecool@gmail.com>
@iabhi4 iabhi4 force-pushed the fix/dla-ceil-round-ops branch from 92a281e to af957b1 Compare March 16, 2026 01:34
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.

RFE: Support Ceil or Round operator on DLA

1 participant