Skip to content

Conversation

@arkq
Copy link
Contributor

@arkq arkq commented Dec 3, 2025

This commits fixes the typing by allowing passing None as a value for the input_shapes parameter in the benchmark_inference() function. In case of input_shapes being None, the function uses the shape retrieved from the initialized session.

ONE-DCO-1.0-Signed-off-by: Arkadiusz Bokowy [email protected]

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes Python typing for the benchmark_inference() function to correctly allow None as a value for the input_shapes parameter. This aligns the type hints with the actual implementation, which already handles None by falling back to shapes retrieved from the initialized session.

  • Updated type annotation for input_shapes parameter from List[List[int]] to Optional[List[List[int]]]
  • Added Optional import from the typing module

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This commits fixes the typing by allowing passing None as a value for
the input_shapes parameter in the benchmark_inference() function. In
case of input_shapes being None, the function uses the shape retrieved
from the initialized session.

ONE-DCO-1.0-Signed-off-by: Arkadiusz Bokowy <[email protected]>
Copy link
Contributor

@glistening glistening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hseok-oh hseok-oh merged commit 31acaa4 into Samsung:master Dec 4, 2025
10 checks passed
@arkq arkq deleted the typing branch December 4, 2025 05:12
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.

3 participants