()
| 80 | if hasattr(_C, '_cuda_setRNGState') and callable(_C._cuda_setRNGState): |
| 81 | # older PyTorch |
| 82 | def cb(): |
| 83 | with device_ctx_manager(device): |
| 84 | _C._cuda_setRNGState(new_state) |
| 85 | else: |
| 86 | # newer PyTorch |
| 87 | if device == -1: |
nothing calls this directly
no test coverage detected