Commit da60579
authored
Replace
Fixes Lightning-AI#20419
`torch_xla.runtime.using_pjrt()` is removed in pytorch/xla#7787
This PR replaces references to that function with a check to [`device_type()`](https://github.com/pytorch/xla/blob/master/torch_xla/runtime.py#L83) to recreate the behavior of that function, minus the manual initializationusing_pjrt() xla runtime device_type() check with in xla.py1 parent 8ce5287 commit da60579
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments