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

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

    """
    config.SetRandomSeed(seed)
示例#2
0
文件: misc.py 项目: 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)
示例#3
0
def set_random_seed(seed):
    config.SetRandomSeed(seed)