Skip to content

G-API: Support DirectML Execution Provider for ONNXRT Backend#24045

Merged
asmorkalov merged 11 commits intoopencv:4.xfrom
TolyaTalamanov:at/add-onnx-directml-execution-provider
Jul 26, 2023
Merged

G-API: Support DirectML Execution Provider for ONNXRT Backend#24045
asmorkalov merged 11 commits intoopencv:4.xfrom
TolyaTalamanov:at/add-onnx-directml-execution-provider

Conversation

@TolyaTalamanov
Copy link
Copy Markdown
Contributor

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

GAPI_WRAP
DirectML(const int device_id) : ddesc(device_id) { };

using DeviceDesc = cv::util::variant<int>;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's going to be extended for string (name)

@TolyaTalamanov TolyaTalamanov force-pushed the at/add-onnx-directml-execution-provider branch from 2ee992c to 9c6478b Compare July 21, 2023 14:11
@TolyaTalamanov TolyaTalamanov added this to the 4.9.0 milestone Jul 21, 2023
@dmatveev dmatveev self-assigned this Jul 21, 2023
@TolyaTalamanov TolyaTalamanov changed the title G-API: Support DirectML Execution Provider for ONNXRT Backend [WIP] G-API: Support DirectML Execution Provider for ONNXRT Backend Jul 24, 2023
@TolyaTalamanov TolyaTalamanov changed the title [WIP] G-API: Support DirectML Execution Provider for ONNXRT Backend G-API: Support DirectML Execution Provider for ONNXRT Backend Jul 24, 2023
@TolyaTalamanov
Copy link
Copy Markdown
Contributor Author

@dmatveev @AsyaPronina Could you have a look, please?

Copy link
Copy Markdown
Contributor

@dmatveev dmatveev left a comment

Choose a reason for hiding this comment

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

👍

Constructs OpenVINO parameters based on device type information.

@param device Target device to use.
@param dev_type Target device type to use. ("CPU_FP32", "GPU_FP16", etc)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Here comes the question.. Should we expose it as-is or build the right facade atop of it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think there is no right facade so far. Only device_type is used correctly by OV EP

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I mean, you're right, there is always right facade exists but I didn't get they way how it can be easier than it's now

@TolyaTalamanov
Copy link
Copy Markdown
Contributor Author

@asmorkalov Could you merge this, please?

thewoz pushed a commit to thewoz/opencv that referenced this pull request Jan 4, 2024
…tml-execution-provider

G-API: Support DirectML Execution Provider for ONNXRT Backend opencv#24045

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [ ] I agree to contribute to the project under Apache 2 License.
- [ ] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
thewoz pushed a commit to thewoz/opencv that referenced this pull request May 29, 2024
…tml-execution-provider

G-API: Support DirectML Execution Provider for ONNXRT Backend opencv#24045

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [ ] I agree to contribute to the project under Apache 2 License.
- [ ] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants