()
| 73 | if hasattr(_C, '_cuda_setRNGState') and callable(_C._cuda_setRNGState): |
| 74 | # older PyTorch |
| 75 | def cb(): |
| 76 | with get_accelerator().device(device): |
| 77 | _C._cuda_setRNGState(new_state) |
| 78 | else: |
| 79 | # newer PyTorch |
| 80 | if device == -1: |
nothing calls this directly
no test coverage detected