How to use pytorch-directml in torch.nn?
See original GitHub issueI try to use torch.nn.moudle().to("dml")
, but there is a problem in my forward function, its said “RuntimeError: bad optional access”, I dont know how it happened.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
Enable PyTorch with DirectML on Windows
There are many tools that you can use to set up a virtual Python environment—for these ... Install PyTorch and the Torch-DirectML Plugin....
Read more >pytorch-directml
PyTorch is a Python package that provides two high-level features: Tensor computation (like NumPy) with strong GPU acceleration; Deep neural networks built ...
Read more >Use DirectML to train PyTorch machine learning models on ...
Microsoft's new tool makes it possible to use your own GPU to work with popular machine learning platforms.
Read more >Pytorch Direct ML for non-Nvidia GPUs on Windows
Theoretically, you'll be able to use the GPU on Windows with DirectX12 by selecting this backend. This may open up more ways to...
Read more >Saving and loading models across devices in PyTorch
1. Import necessary libraries for loading our data. For this recipe, we will use torch and its subsidiaries torch.nn ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I get some issue on
torch.nn
aten::replication_pad2d
,I guess this modules also not implemented yet?
Thanks for your submission! We are actively adding new operator support to PyTorch-DML, so thank you for your patience and being one of our early users. Please visit the PyTorch-DirectML Operator Roadmap for guidance on current and future support.