Skip to content

Commit 7f3c423

Browse files
yaroslavvbfacebook-github-bot
authored andcommitted
Add type hint for cuda.set_rng_state (#26200)
Summary: Fixes #26199 Pull Request resolved: #26200 Differential Revision: D17386885 Pulled By: soumith fbshipit-source-id: 9da03aae29281b2ed691cbfdd7b85fde55e5b7ef
1 parent b4b8f53 commit 7f3c423

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torch/cuda/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ def max_memory_cached(device: Optional[_device_t]=...) -> int: ...
4040
def reset_max_memory_cached(device: Optional[_device_t]=...) -> None: ...
4141
def cudart() -> ctypes.CDLL: ...
4242
def find_cuda_windows_lib() -> Optional[ctypes.CDLL]: ...
43+
def set_rng_state(new_state): ...
44+
def get_rng_state(): ...

0 commit comments

Comments
 (0)