コード例 #1
0
def manual_seed_all(seed):
    r"""Sets the seed for generating random numbers on all GPUs.

    Args:
        seed (int or long): The desired seed.
    """
    _lazy_init()
    return _C._cuda_manualSeedAll(seed)
コード例 #2
0
def manual_seed_all(seed):
    r"""Sets the seed for generating random numbers on all GPUs.
    It's safe to call this function if CUDA is not available; in that
    case, it is silently ignored.

    Args:
        seed (int or long): The desired seed.
    """
    _lazy_call(lambda: _C._cuda_manualSeedAll(seed))
コード例 #3
0
ファイル: random.py プロジェクト: Jsmilemsj/pytorch
def manual_seed_all(seed):
    r"""Sets the seed for generating random numbers on all GPUs.
    It's safe to call this function if CUDA is not available; in that
    case, it is silently ignored.

    Args:
        seed (int): The desired seed.
    """
    seed = int(seed)
    _lazy_call(lambda: _C._cuda_manualSeedAll(seed))
コード例 #4
0
ファイル: random.py プロジェクト: zwytop/pytorch
def manual_seed_all(seed):
    _lazy_init()
    return _C._cuda_manualSeedAll(seed)