Skip to content

Allow defining output metadata in the OpSchema#6244

Draft
rostan-t wants to merge 7 commits intoNVIDIA:mainfrom
rostan-t:opschema-metadata
Draft

Allow defining output metadata in the OpSchema#6244
rostan-t wants to merge 7 commits intoNVIDIA:mainfrom
rostan-t:opschema-metadata

Conversation

@rostan-t
Copy link
Copy Markdown
Collaborator

@rostan-t rostan-t commented Mar 2, 2026

Category:

New feature (non-breaking change which adds functionality)

Description:

It is currently necessary to run operators in order to know the output ndim, dtype and layouts. This PR adds the possibility to specify those metadata when defining an OpSchema.

This is especially relevant for dynamic mode because accessing those metadata currently causes immediate evaluation of tensors, even when EvalMode.eager or EvalMode.defer is used.

Additional information:

Affected modules and functionalities:

Key points relevant for the review:

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: DALI-2778

@rostan-t rostan-t force-pushed the opschema-metadata branch from 98706e8 to 5e10607 Compare March 16, 2026 12:24
rostan-t and others added 4 commits March 19, 2026 14:38
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
@mzient mzient force-pushed the opschema-metadata branch 2 times, most recently from bd114c6 to 7933ed4 Compare March 25, 2026 22:20
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
@mzient mzient force-pushed the opschema-metadata branch from 7933ed4 to 44ba7e7 Compare March 25, 2026 22:22
mzient added 2 commits March 25, 2026 23:53
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants