Skip to content

Validate CreateSessionFromArray with ep.context_enable enabled#24176

Merged
HectorSVC merged 6 commits intomainfrom
ep_context_file_path_validation
Apr 17, 2025
Merged

Validate CreateSessionFromArray with ep.context_enable enabled#24176
HectorSVC merged 6 commits intomainfrom
ep_context_file_path_validation

Conversation

@HectorSVC
Copy link
Contributor

Description

Add validation in path that user CreateSessionFromArray: if ep.context_enable is set, then ep.context_file_path is expected, otherwise report error because ORT don't know where to generate the _ctx.onnx file

…ontext_enable is set, then ep.context_file_path is expected, otherwise report error because ORT don't know where to generate the _ctx.onnx file
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

You can commit the suggested changes from lintrunner.

HectorSVC and others added 4 commits March 25, 2025 17:01
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@HectorSVC HectorSVC changed the title Validation CreateSessionFromArray with ep.context_enable enabled Validate CreateSessionFromArray with ep.context_enable enabled Mar 31, 2025
@HectorSVC HectorSVC closed this Apr 11, 2025
@HectorSVC HectorSVC reopened this Apr 11, 2025
@HectorSVC HectorSVC merged commit 5ff7bfb into main Apr 17, 2025
88 of 90 checks passed
@HectorSVC HectorSVC deleted the ep_context_file_path_validation branch April 17, 2025 21:51
adrianlizarraga added a commit that referenced this pull request Apr 18, 2025
…#24463)

### Description
Re-enables (and fixes) generation of compiled EpContext models with
**both** input and output models stored in buffers.

### Motivation and Context
Previous PR #24176 inadvertently added a check that disabled storing
both input and output models in buffers. However, we need this
functionality. This was actually a fortunate scenario, as it led to the
discovery of a bug.
ashrit-ms pushed a commit that referenced this pull request Apr 24, 2025
### Description
Add validation in path that user CreateSessionFromArray: if ep.context_enable is set, then ep.context_file_path is expected,
otherwise report error because ORT don't know where to generate the _ctx.onnx file
ashrit-ms pushed a commit that referenced this pull request Apr 24, 2025
…#24463)

### Description
Re-enables (and fixes) generation of compiled EpContext models with
**both** input and output models stored in buffers.

### Motivation and Context
Previous PR #24176 inadvertently added a check that disabled storing
both input and output models in buffers. However, we need this
functionality. This was actually a fortunate scenario, as it led to the
discovery of a bug.
intbf pushed a commit to intbf/onnxruntime that referenced this pull request Apr 25, 2025
…soft#24176)

### Description
Add validation in path that user CreateSessionFromArray: if ep.context_enable is set, then ep.context_file_path is expected,
otherwise report error because ORT don't know where to generate the _ctx.onnx file

Signed-off-by: bfilipek <bartlomiej.filipek@intel.com>
intbf pushed a commit to intbf/onnxruntime that referenced this pull request Apr 25, 2025
…microsoft#24463)

### Description
Re-enables (and fixes) generation of compiled EpContext models with
**both** input and output models stored in buffers.

### Motivation and Context
Previous PR microsoft#24176 inadvertently added a check that disabled storing
both input and output models in buffers. However, we need this
functionality. This was actually a fortunate scenario, as it led to the
discovery of a bug.

Signed-off-by: bfilipek <bartlomiej.filipek@intel.com>
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.

2 participants