-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Travis CI * Update versions of pylint, flake8, and mypy * Fix mypy error * Fix pylint error
- Loading branch information
Showing
21 changed files
with
108 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import cudnn as cudnn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
benchmark: bool = ... | ||
deterministic: bool = ... | ||
verbose: bool = ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
from typing import Optional, Tuple, Union | ||
import ctypes | ||
from .. import device as _device | ||
|
||
def is_available() -> bool: ... | ||
def init() -> None: ... | ||
|
||
class cudaStatus: | ||
SUCCESS: int | ||
ERROR_NOT_READY: int | ||
|
||
class CudaError: | ||
def __init__(self, code: int) -> None: ... | ||
|
||
class _CudaDeviceProperties: | ||
name: str | ||
major: int | ||
minor: int | ||
multi_processor_count: int | ||
total_memory: int | ||
is_integrated: int | ||
is_multi_gpu_board: int | ||
|
||
_device_t = Union[_device, int] | ||
|
||
def check_error(res: int) -> None: ... | ||
def device_count() -> int: ... | ||
def empty_cache() -> None: ... | ||
def synchronize(device: _device_t) -> None: ... | ||
def set_device(device: _device_t) -> None: ... | ||
def get_device_capability(device: Optional[_device_t]=...) -> Tuple[int, int]: ... | ||
def get_device_name(device: Optional[_device_t]=...) -> str: ... | ||
def get_device_properties(device: _device_t) -> _CudaDeviceProperties: ... | ||
def current_device() -> int: ... | ||
def memory_allocated(device: Optional[_device_t]=...) -> int: ... | ||
def max_memory_allocated(device: Optional[_device_t]=...) -> int: ... | ||
def reset_max_memory_allocated(device: Optional[_device_t]=...) -> None: ... | ||
def memory_cached(device: Optional[_device_t]=...) -> int: ... | ||
def max_memory_cached(device: Optional[_device_t]=...) -> int: ... | ||
def reset_max_memory_cached(device: Optional[_device_t]=...) -> None: ... | ||
def cudart() -> ctypes.CDLL: ... | ||
def find_cuda_windows_lib() -> Optional[ctypes.CDLL]: ... | ||
def set_rng_state(new_state): ... | ||
def get_rng_state(): ... | ||
|
||
def manual_seed(seed: int): ... | ||
def manual_seed_all(seed: int): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters