Giter VIP home page Giter VIP logo

Comments (4)

nums11 avatar nums11 commented on June 9, 2024

Thanks for posting.

  1. The preprocessing model used in the sample was created using LearningModelBuilder which is part of the WinML Experimental API. An example of using LearningModelBuilder to create a model can be found here. Alternatively, you could also use the ONNX python API.

  2. Writing a compute shader is possible, but will not be optimized with other shaders in the dml graph. There may be performance gains but it's hard to say.

  3. WinML uses DML as a backend. The sample showcases how to use ORT with the DML EP, but ORT can be use with other EPs (CUDA, TensorRT, etc.).

from windows-machine-learning.

qunliu avatar qunliu commented on June 9, 2024

Thanks for posting.

  1. The preprocessing model used in the sample was created using LearningModelBuilder which is part of the WinML Experimental API. An example of using LearningModelBuilder to create a model can be found here. Alternatively, you could also use the ONNX python API.
  2. Writing a compute shader is possible, but will not be optimized with other shaders in the dml graph. There may be performance gains but it's hard to say.
  3. WinML uses DML as a backend. The sample showcases how to use ORT with the DML EP, but ORT can be use with other EPs (CUDA, TensorRT, etc.).

Thanks for your reply @nums11!

Would you please confirm for the third bullet point above that if we want to use any providers other than DML, we can't use WinML, only a level down using ORT directly is the way to go? I am asking because for your sample code, the ORT API specifically mentions only DML is supported at this moment. Thanks!

from windows-machine-learning.

nums11 avatar nums11 commented on June 9, 2024

Yes, if you want to use a provider other than DML you cannot use WinML and you can use ORT. Here is an example from the ORT docs of using ORT with CUDA as a backend.

from windows-machine-learning.

qunliu avatar qunliu commented on June 9, 2024

Yes, if you want to use a provider other than DML you cannot use WinML and you can use ORT. Here is an example from the ORT docs of using ORT with CUDA as a backend.

Thanks for your reply @nums11!

from windows-machine-learning.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.