_cudnn.pyi 317 B

1234567891011121314
  1. from enum import IntEnum
  2. # Defined in torch/csrc/cuda/shared/cudnn.cpp
  3. is_cuda: bool
  4. def getRuntimeVersion() -> tuple[int, int, int]: ...
  5. def getCompileVersion() -> tuple[int, int, int]: ...
  6. def getVersionInt() -> int: ...
  7. class RNNMode(IntEnum):
  8. rnn_relu = ...
  9. rnn_tanh = ...
  10. lstm = ...
  11. gru = ...