Code Monkey home page Code Monkey logo

Comments (9)

PatriceVignola avatar PatriceVignola commented on September 12, 2024 7

@SomeAB

The app you linked is using PyTorch. We don't have a DirectML backend for PyTorch at the moment, but this is definitely something we could be interested in supporting in the future if there is a demand from the community.

from directml.

wchao1115 avatar wchao1115 commented on September 12, 2024 1

@SomeAB I'm not super familiar with the app you refer to, but as for ONNX runtime, we work closely with them. If your question is how to get a version of ONNX runtime that works with DirectML, the easiest way currently is to install this nuget package on your Windows PC. This package comes with a version of DirectML that works well with it, but would work on Windows only. Good luck with your experiment. Let us know how it goes.

from directml.

jstoecker avatar jstoecker commented on September 12, 2024 1

There are preview builds of PyTorch-DirectML now: https://devblogs.microsoft.com/windowsai/introducing-pytorch-directml-train-your-machine-learning-models-on-any-gpu/

from directml.

SomeAB avatar SomeAB commented on September 12, 2024

Hi Patrice. Thats good to hear, but I briefly read at one point that I can somehow achieve it using onnxruntime. Onnx does support Directml, but a person needs to build it manually. Any idea how? Also, If there was a easy pip3 command for Onnx-Directml, it would be great.

Also are there any video/walkthrough tutorials for Directml yet? perhaps some showing the samples listed on microsoft website's DirectML docs section?

from directml.

PatriceVignola avatar PatriceVignola commented on September 12, 2024

I'm not very familiar with this app, but as far as I can tell, it exclusively uses PyTorch. It's true that you can convert PyTorch models to ONNX models and use onnxruntime to run them, but you would need to swap the PyTorch calls that the app uses for onnxruntime calls.

To use DirectML with onnxruntime, you will need to follow the Building from source instructions.

from directml.

alimoezzi avatar alimoezzi commented on September 12, 2024

@SomeAB I'm not super familiar with the app you refer to, but as for ONNX runtime, we work closely with them. If your question is how to get a version of ONNX runtime that works with DirectML, the easiest way currently is to install this nuget package on your Windows PC. This package comes with a version of DirectML that works well with it, but would work on Windows only. Good luck with your experiment. Let us know how it goes.

It's only useful when you have VS solution not working in with pytorch

from directml.

AGenchev avatar AGenchev commented on September 12, 2024

I read of DirectML today and I must say I'm much impressed by Microsoft for this one. Might make me to boot more often in Windows if this works better than TF on CUDA in Linux. All AMD APU owners probably will do so, because of the non-existing support AMD provides for its APUs (If this works on APUs). Eh, if this was under Vulkan it'd be more portable and we could use on RaspberryPi...

from directml.

6p5ra avatar 6p5ra commented on September 12, 2024

@SomeAB

The app you linked is using PyTorch. We don't have a DirectML backend for PyTorch at the moment, but this is definitely something we could be interested in supporting in the future if there is a demand from the community.

The future never came.

from directml.

AGenchev avatar AGenchev commented on September 12, 2024

They made it. Nowadays pytorch just works on AMD GPU & APU. I use it on Ryzen 5700G APU.

from directml.

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.