예제 #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())
예제 #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()
예제 #3
0
파일: random.py 프로젝트: zwytop/pytorch
def seed_all():
    _lazy_init()
    return _C._cuda_seedAll()
예제 #4
0
파일: random.py 프로젝트: Jsmilemsj/pytorch
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())