-
Notifications
You must be signed in to change notification settings - Fork 9
AIMIGRAPHX-425 Initial changes getting in max dynamic batch flag into MIGraphX EP #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit addresses the issue where input_shapes could be empty when first loading a model, which would cause model caching to be skipped incorrectly. Key changes: - Fixed incorrect iteration using session_input_names.size() as index into input_tensor vector. Now directly iterates over input_tensor. - Changed loop to include all dimensions (starting from j=0 instead of j=1), as skipping dimension 0 could result in empty shapes for low-rank tensors. - Added validation to check for null shapes and zero dimension sizes before processing. - Added check for has_dim_value() to handle symbolic/dynamic dimensions properly, only including dimensions with concrete positive values. This ensures model caching works correctly when valid input shapes are available.
This reverts commit 60c8226.
…ted shapes. let MIGraphX treat this as a static shape
…itializers with regards to batch size
| * \note If a ::OrtArenaCfg has been applied, it will override this field | ||
| */ | ||
| int migraphx_arena_extend_strategy; | ||
| size_t migraphx_max_dynamic_batch; //Max Dynamic batch size. Default 0 = disabled, nonzero = enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Microsoft has stopped accepting PRs that add to or remove from this structure (in general, all changes modifying any Provider API). They want us to use ProviderOptions instead. The reason is that with the new Auto EP interface, any change here will break backward compatibility.
|
Superceeded by #207 |
Description
Enable max dynamic batch size so we can enable dynamic shapes using migarphx's api
Motivation and Context