def random_seed_np_tf(seed):
    """Seed numpy and tensorflow random number generators.

    :param seed: seed parameter
    """
    if seed >= 0:
        np.random.seed(seed)
        tf.set_random_seed(seed)
        return True
    else:
        return False
Seed numpy and tensorflow random number generators.

    :param seed: seed parameter
    
yadlt/utils/utilities.py