Skip to content
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

Delete path.h #21211

Merged
merged 10 commits into from
Jul 4, 2024
Merged

Delete path.h #21211

merged 10 commits into from
Jul 4, 2024

Conversation

snnn
Copy link
Member

@snnn snnn commented Jun 29, 2024

Description

Delete path.h and replace all occurrences of onnxruntime::Path with std::filesystem::path.
Previously we couldn't use C++17's std::filesystem because it was not supported in iOS 12(which was released in 2018). Now we dropped the support for iOS 12.

Motivation and Context

To simplify code. For example, if an EP wants to use the Path class, now it can directly use it without going through a wrapper. And the standard implementation can handle various path types better. (We didn't take much consideration on UNC path, "/" as a path separator on Windows, etc).

@snnn snnn marked this pull request as ready for review June 29, 2024 19:34
mszhanyi
mszhanyi previously approved these changes Jul 3, 2024
@mszhanyi mszhanyi self-requested a review July 3, 2024 04:15
@mszhanyi mszhanyi merged commit 07c4291 into main Jul 4, 2024
92 of 98 checks passed
@mszhanyi mszhanyi deleted the snnn/filesystem branch July 4, 2024 07:54
glen-amd added a commit to glen-amd/onnxruntime that referenced this pull request Jul 12, 2024
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