Commit 92b6254
feat(utils): add support for Intel XPU backend (#2233)
* feat: add support for Intel XPU backend in device selection
* Update src/lerobot/utils/utils.py
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Lim Xiang Yang <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: update is_amp_available to include xpu as a valid device
* Update src/lerobot/utils/utils.py
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Lim Xiang Yang <[email protected]>
* Update src/lerobot/utils/utils.py
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Lim Xiang Yang <[email protected]>
* fix: remove unused return and add comments on fp64 fallback handling
* fix(utils): return dtype in case xpu has fp64
---------
Signed-off-by: Lim Xiang Yang <[email protected]>
Co-authored-by: Lim, Xiang Yang <[email protected]>
Co-authored-by: Lim Xiang Yang <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jade Choghari <[email protected]>1 parent 79137f5 commit 92b6254
File tree
2 files changed
+26
-3
lines changed- src/lerobot/utils
- tests/async_inference
2 files changed
+26
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| |||
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
84 | 105 | | |
85 | 106 | | |
86 | 107 | | |
| |||
91 | 112 | | |
92 | 113 | | |
93 | 114 | | |
| 115 | + | |
| 116 | + | |
94 | 117 | | |
95 | 118 | | |
96 | 119 | | |
97 | | - | |
| 120 | + | |
98 | 121 | | |
99 | 122 | | |
100 | 123 | | |
101 | | - | |
| 124 | + | |
102 | 125 | | |
103 | 126 | | |
104 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| |||
0 commit comments