DeepSpeed/accelerator
shiyang-weng 1d8196736f
Fix the TypeError for XPU Accelerator (#5531)
Fixing following error
/datadisk2/wengshiy/llm.devkit/DeepSpeed/deepspeed/runtime/utils.py
    return get_accelerator().FloatTensor(float(v)).detach()
TypeError: new(): data must be a sequence (got float)

cuda accelerator modified the interface for fixing warning:
177dc14331

---------

Co-authored-by: Olatunji Ruwase <olruwase@microsoft.com>
2024-05-20 14:52:44 +00:00
..
__init__.py [NPU] Add NPU support for unit test (#4569) 2023-11-13 20:36:12 +00:00
abstract_accelerator.py Add getter and setter methods for compile_backend across accelerators. (#5299) 2024-04-24 15:25:18 +00:00
cpu_accelerator.py Add getter and setter methods for compile_backend across accelerators. (#5299) 2024-04-24 15:25:18 +00:00
cuda_accelerator.py Add getter and setter methods for compile_backend across accelerators. (#5299) 2024-04-24 15:25:18 +00:00
hpu_accelerator.py Add getter and setter methods for compile_backend across accelerators. (#5299) 2024-04-24 15:25:18 +00:00
mps_accelerator.py Add getter and setter methods for compile_backend across accelerators. (#5299) 2024-04-24 15:25:18 +00:00
npu_accelerator.py Add getter and setter methods for compile_backend across accelerators. (#5299) 2024-04-24 15:25:18 +00:00
real_accelerator.py Make op builder detection adapt to accelerator change (#5206) 2024-03-12 20:48:29 +00:00
xpu_accelerator.py Fix the TypeError for XPU Accelerator (#5531) 2024-05-20 14:52:44 +00:00