Using non-GPU accelerator for Dataset.map

It seems from this page Accelerator Support — Ray 2.32.0 non-GPU accelerators are supported. How can I select them for Dataset.map?

How severe does this issue affect your experience of using Ray?

  • High: It blocks me to complete my task.

I have found the solution.

ds = ds.map(fn, resources={"HPU": 1})