Skip to content

Make 'env' argument to Session const#13362

Merged
skottmckay merged 1 commit intomainfrom
skottmckay/FixCxxSessionEnvConstness
Oct 19, 2022
Merged

Make 'env' argument to Session const#13362
skottmckay merged 1 commit intomainfrom
skottmckay/FixCxxSessionEnvConstness

Conversation

@skottmckay
Copy link
Copy Markdown
Contributor

Description

The Env argument does not need to be mutable to call the underlying C API. Update the Ort::Session ctor to have a const Env.

All other changes are from clang-format running.

Motivation and Context

Cleanup

@skottmckay skottmckay marked this pull request as ready for review October 19, 2022 01:20
@skottmckay skottmckay merged commit 565da71 into main Oct 19, 2022
@skottmckay skottmckay deleted the skottmckay/FixCxxSessionEnvConstness branch October 19, 2022 04:23
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