Commit daec61e
Normalize device kind strings when looking up HBM memory.
This change removes spaces from device kind strings before looking up HBM memory values. This ensures that device kinds like "TPU 7x" and "TPU7x" are treated the same, preventing lookup failures due to inconsistent spacing.
PiperOrigin-RevId: 8714779341 parent 46eea87 commit daec61e
File tree
2 files changed
+9
-1
lines changed- checkpoint/orbax/checkpoint/_src/multihost
2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| |||
0 commit comments