The operator 'aten::upsample_nearest1d.out' is not currently supported on the DML backend and will fall back to run on the CPU

Open
#718 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, python

Research direction

Reproduce the warning from torch.nn.functional.py at the reported upsample_nearest1d call, then inspect torch_directml/csrc/dml/dml_cpu_fallback.cpp around line 17 and the operator-support implementation. Done means aten::upsample_nearest1d.out executes on the DML backend without a CPU fallback, with coverage confirming the behavior.

Written by the indexing model from the issue text.

Description

When I use the directml on amd platform,i got the warning ,and it fall back to run on CPU。

C:\Users\amd.conda\envs\aippt\Lib\site-packages\torch\nn\functional.py:4048: UserWarning: The operator 'aten::upsample_nearest1d.out' is not currently supported on the DML backend and will fall back to run on the CPU. This may have performance implications. (Triggered internally at C:__w\1\s\pytorch-directml-plugin\torch_directml\csrc\dml\dml_cpu_fallback.cpp:17.)
return torch._C._nn.upsample_nearest1d(input, output_size, scale_factors)

Dominant language
C++
Stars
2.6k
Forks
338
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/DirectML

All issues in microsoft/DirectML

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.