Skip to content

Conversation

@yuslepukhin
Copy link
Member

Description

Use the argument passed instead of a constant.

Motivation and Context

This is a bug

Copy link
Contributor

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 a bug in the GetInputOutputMemoryInfo function where the function was hardcoded to always retrieve input memory info instead of using the caller-specified type parameter.

  • Replaces hardcoded constant with the type parameter to respect caller's intent
  • Ensures the function behaves correctly for both input and output memory info requests

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@adrianlizarraga
Copy link
Contributor

Should we add a unit test?

@yuslepukhin
Copy link
Member Author

It is getting covered in my next PR, that's how I found it.

@yuslepukhin yuslepukhin merged commit 753e6c5 into main Sep 9, 2025
92 checks passed
@yuslepukhin yuslepukhin deleted the yuslepukhin/address_get_output_meminfo branch September 9, 2025 18:21
snnn pushed a commit that referenced this pull request Sep 9, 2025
…nt() always for inputs (#25988)

### Description
<!-- Describe your changes. -->
Use the argument passed instead of a constant.

### Motivation and Context
This is a bug
jywu-msft pushed a commit that referenced this pull request Sep 10, 2025
This PR cherry-picks the following PRs to the release branch:
- #25988
- #25991

---------

Co-authored-by: Dmitri Smirnov <yuslepukhin@users.noreply.github.com>
Co-authored-by: umangb-09 <umangb@nvidia.com>
@snnn
Copy link
Contributor

snnn commented Sep 15, 2025

This PR has been cherry-picked into the rel-1.23.0 branch in PR #26003. Removing the release:1.23.0 label.

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.

4 participants