Beispiel #1
0
def seed_all():
    r"""Sets the seed for generating random numbers to a random number on all GPUs.
    It's safe to call this function if CUDA is not available; in that
    case, it is silently ignored.
    """
    _lazy_call(lambda: _C._cuda_seedAll())
Beispiel #2
0
def seed_all():
    r"""Sets the seed for generating random numbers to a random number on all GPUs."""
    _lazy_init()
    return _C._cuda_seedAll()
Beispiel #3
0
def seed_all():
    _lazy_init()
    return _C._cuda_seedAll()
Beispiel #4
0
def seed_all():
    r"""Sets the seed for generating random numbers to a random number on all GPUs.
    It's safe to call this function if CUDA is not available; in that
    case, it is silently ignored.
    """
    _lazy_call(lambda: _C._cuda_seedAll())