tests/transformers/electra/test_modeling.py
def create_input_data(config, seed=None):
    '''
    the generated input data will be same if a specified seed is set 
    '''
    if seed is not None:
        np.random.seed(seed)

    input_ids = np.random.randint(
        low=0,
        high=config['vocab_size'],
        size=(config["batch_size"], config["seq_len"]))

    return input_ids

    the generated input data will be same if a specified seed is set 
    
the generated input data will be same if a specified seed is set
the generated input data will be same if a specified seed is set
def create_input_data(config, seed=None):
    if seed is not None:
        np.random.seed(seed)
    input_ids = np.random.randint(
        low=0,
        high=config['vocab_size'],
        size=(config["batch_size"], config["seq_len"]))
    return input_ids
def create_input_data ( config , seed = None ) : if seed is not None : np . random . seed ( seed ) input_ids = np . random . randint ( low = 0 , high = config [ 'vocab_size' ] , size = ( config [ "batch_size" ] , config [ "seq_len" ] ) ) return input_ids
the generated input data will be same if a specified seed is set
the generated input data will be same if a specified seed is set
'''
    the generated input data will be same if a specified seed is set 
    '''
config
seed