Example #1
0
def set_random_seed(seed):
    """Set the global random seed.

    Parameters
    ----------
    seed : int
        The seed to use.

    """
    config.SetRandomSeed(seed)
Example #2
0
File: misc.py Project: hyglvy/cstd
def set_random_seed(seed):
    """Set the global random seed. [**PyCaffe Style**]

    Parameters
    ----------
    seed : int
        The random seed.

    Returns
    -------
    None

    References
    ----------
    The implementation of `set_random_seed(_caffe.cpp, L71)`_.

    """
    config.SetRandomSeed(seed)
Example #3
0
def set_random_seed(seed):
    config.SetRandomSeed(seed)