Ejemplo n.º 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)
Ejemplo n.º 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))
Ejemplo n.º 3
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): The desired seed.
    """
    seed = int(seed)
    _lazy_call(lambda: _C._cuda_manualSeedAll(seed))
Ejemplo n.º 4
0
def manual_seed_all(seed):
    _lazy_init()
    return _C._cuda_manualSeedAll(seed)