()
| 94 | if hasattr(_C, '_cuda_setRNGState') and callable(_C._cuda_setRNGState): |
| 95 | # older PyTorch |
| 96 | def cb(): |
| 97 | with device_ctx_manager(device): |
| 98 | _C._cuda_setRNGState(new_state) |
| 99 | else: |
| 100 | # newer PyTorch |
| 101 | if device == -1: |
nothing calls this directly
no outgoing calls
no test coverage detected